Could anyone help me remove this error ?
L 10/24/2015 - 04:59:16: [AMXX] Displaying debug trace (plugin "pg.amxx", version "2015")
L 10/24/2015 - 04:59:16: [AMXX] Run time error 4: index out of bounds
L 10/24/2015 - 04:59:16: [AMXX] [0] 99a9e4b68481360b9fba15b8071f2334.sma:: PlayerDeath (line 662)
Quote:
public PlayerDeath(victim, attacker){
new vicname[32]
new killname[32]
new health
health = get_user_health(attacker);
gKillerID[victim] = attacker;
get_user_name(victim,vicname,31);
get_user_name(attacker,killname,31);
if(get_pcvar_num(VarShowHP) == 1){
if(iLive){
if(is_user_connected(victim) && victim != attacker){
client_print(victim,print_chat,"[ %s te matou, ficando com %i HP ]",killname,health);
gHPKiller[attacker] = health;
}
}
}
}
|
Quote:
|
line 662: gHPKiller[attacker] = health;
|