Ką reiškia šis error?
Posted: 2010 Sep 21 16:18
Tema ^
L 09/20/2010 - 21:17:25: [AMXX] Run time error 4: index out of bounds
L 09/20/2010 - 21:17:25: [AMXX] Run time error 4: index out of bounds
Code: Select all
new kintamasis[20]
Code: Select all
if(kintamasis[56])...
Code: Select all
public Fwd_PlayerDamage(victim, inflictor, attacker, Float:damage, damagebits){ if (!(1 <= attacker <= g_maxplayers)) return HAM_IGNORED new clip, ammo, weapon = get_user_weapon(attacker, clip, ammo) new Float: Counted_Strength Counted_Strength = Sayan_Strength_PerStat[PlayerRace[attacker]] * Strength[attacker] if (weapon == CSW_KNIFE) { if (PlayerRace[attacker] == Sayan) { SetHamParamFloat(4, damage + damage / 100.0 * Counted_Strength) } } return HAM_IGNORED}
Code: Select all
if (PlayerRace[attacker] == Sayan)
Code: Select all
if (!(1 <= attacker <= g_maxplayers)) return HAM_IGNORED