Run time error 4: index out of bounds
Giving me a run time error
Code:
L 02/06/2007 - 02:13:02: [AMXX] Displaying debug trace (plugin "zombie_swarm.amxx")PHP Code:
Also, is it possible to only use one function for the both of these things to make it a bit cleaner? |
Re: Run time error 4: index out of bounds
you should check the index of the attacker which get_user_attacker returned.
because if an entity attack the user, also trigger the damage event, and the entity's index may out of your array's bounds |
Re: Run time error 4: index out of bounds
I have checked it but its in the plugin_init
PHP Code:
|
Re: Run time error 4: index out of bounds
that can't handle all the situation.
|
Re: Run time error 4: index out of bounds
oh..
Then how do I check the index (attacker) if its an entity or not not via plugin_init? |
Re: Run time error 4: index out of bounds
if (attacker > sizeof g_zombie) return
i wonder what is your g_zombie like |
| All times are GMT -4. The time now is 00:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.