Raised This Month: $ Target: $400
 0% 

[HELP] Run time error 4: index out of bounds


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Michell
Member
Join Date: Oct 2015
Old 10-24-2015 , 09:31   [HELP] Run time error 4: index out of bounds
Reply With Quote #1

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;

Last edited by Michell; 10-24-2015 at 09:32. Reason: Erro em traslation
Michell is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:16.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode