Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright © 1997-2006 ITB CompuPhase, AMX Mod X Team
dhffdfd.sma(269) : error 020: invalid symbol name ""
dhffdfd.sma(1210) : warning 217: loose indentation
dhffdfd.sma(1210) : error 017: undefined symbol "i"
dhffdfd.sma(1211) : error 017: undefined symbol "i"
dhffdfd.sma(1211) : warning 217: loose indentation
dhffdfd.sma(1211 -- 1212) : warning 215: expression has no effect
dhffdfd.sma(1212) : error 029: invalid expression, assumed zero
dhffdfd.sma(1213) : error 017: undefined symbol "i"
dhffdfd.sma(1213 -- 1214) : warning 215: expression has no effect
dhffdfd.sma(1269) : warning 217: loose indentation
dhffdfd.sma(1337) : error 054: unmatched closing brace
dhffdfd.sma(1548) : warning 217: loose indentation
dhffdfd.sma(1549) : warning 217: loose indentation
dhffdfd.sma(8464) : warning 217: loose indentation
dhffdfd.sma(8465) : warning 217: loose indentation
dhffdfd.sma(8470) : warning 217: loose indentation
dhffdfd.sma(8475) : warning 217: loose indentation
dhffdfd.sma(8657) : warning 203: symbol is never used: ""
6 Errors.
Could not locate output file dhffdfd.amxx (compile failed).
Błędy loose indentation pomijam ale np expression has no effect błąd wyskakuje w linijce:
else
b_heal[i] = 0
.
Jeszcze przed tym są błędy: undefined symbol "i":
if(player_class[i] == Wendigo)
b_heal[i] = 20 // ustaw ile chcesz
b_heal[i] = 0
to są linijki w których jest błąd
Obraz błąd w linijce 1337:
public CurWeapon(id)
{
after_bullet[id]=1
new clip,ammo
new weapon=get_user_weapon(id,clip,ammo)
invisible_cast[id]=0
if(weapon == CSW_KNIFE) on_knife[id]=1
else on_knife[id]=0
if ((weapon != CSW_C4 ) && !on_knife[id] && (player_class[id] == Ninja))
{
client_cmd(id,"weapon_knife")
engclient_cmd(id,"weapon_knife")
on_knife[id]=1
}
//if (player_item_id[id] == 17 || player_b_usingwind[id] == 1)// engclient_cmd(id,"weapon_knife")
if(player_sword[id] == 1)
{
if(on_knife[id]){
entity_set_string(id, EV_SZ_viewmodel, SWORD_VIEW)
entity_set_string(id, EV_SZ_weaponmodel, SWORD_PLAYER)
}
if(weapon == CSW_C4){
entity_set_string(id, EV_SZ_viewmodel, C4_VIEW)
entity_set_string(id, EV_SZ_weaponmodel, C4_PLAYER)
}
if(weapon == CSW_HEGRENADE){
entity_set_string(id, EV_SZ_viewmodel, HE_VIEW)
entity_set_string(id, EV_SZ_weaponmodel, HE_PLAYER)
}
if(weapon == CSW_FLASHBANG){
entity_set_string(id, EV_SZ_viewmodel, FL_VIEW)
entity_set_string(id, EV_SZ_weaponmodel, FL_PLAYER)
}
if(weapon == CSW_SMOKEGRENADE){
entity_set_string(id, EV_SZ_viewmodel, SE_VIEW)
entity_set_string(id, EV_SZ_weaponmodel, SE_PLAYER)
}
}
if(player_sword[id] == 0)
{
if(on_knife[id]){
entity_set_string(id, EV_SZ_viewmodel, KNIFE_VIEW)
entity_set_string(id, EV_SZ_weaponmodel, KNIFE_PLAYER)
}
if(weapon == CSW_C4){
entity_set_string(id, EV_SZ_viewmodel, C4_VIEW)
entity_set_string(id, EV_SZ_weaponmodel, C4_PLAYER)
}
if(weapon == CSW_HEGRENADE){
entity_set_string(id, EV_SZ_viewmodel, HE_VIEW)
entity_set_string(id, EV_SZ_weaponmodel, HE_PLAYER)
}
if(weapon == CSW_FLASHBANG){
entity_set_string(id, EV_SZ_viewmodel, FL_VIEW)
entity_set_string(id, EV_SZ_weaponmodel, FL_PLAYER)
}
if(weapon == CSW_SMOKEGRENADE){
entity_set_string(id, EV_SZ_viewmodel, SE_VIEW)
entity_set_string(id, EV_SZ_weaponmodel, SE_PLAYER)
}
}
if(bow[id]==1)
{
bow[id]=0
if(on_knife[id])
{
entity_set_string(id, EV_SZ_viewmodel, KNIFE_VIEW)
entity_set_string(id, EV_SZ_weaponmodel, KNIFE_PLAYER)
}
}
set_gravitychange(id)
set_speedchange(id)
set_renderchange(id)
if(player_class[id] == Nekromanta) g_haskit[id] = true
else g_haskit[id] = false
write_hud(id)
}
}
Podałem całą funkcję bo błąd odwołuje się do ostatniej zamykającej klamry.