Run time error 4 (Done)
I am using this:
PHP Code:
getting this error: Code:
L 10/30/2013 - 21:40:38: [AMXX] Displaying debug trace (plugin "zbheroex_melee_combat.amxx") |
Re: Run time error 4
In that code, line 7 is this
Code:
if(!is_user_connected(victim) || !is_user_connected(attacker)But, given the error message, I'm going to assume that it is actually pointing to this line Code:
if(g_Knife[attacker] && is_user_alive(attacker) && inflictor == attacker && get_user_weapon(attacker) == CSW_KNIFE) |
Re: Run time error 4
Quote:
|
Re: Run time error 4
Well, make g_Knife larger
|
Re: Run time error 4
Quote:
What value should i put then? |
Re: Run time error 4
Depends on the value of attacker
|
Re: Run time error 4
Quote:
|
Re: Run time error 4
Quote:
|
Re: Run time error 4
Quote:
Also, this is an extremely common question here so you can find many threads that talk about it. |
Re: Run time error 4
Your code is fine, can't throw a bound error on g_Knife[attacker] if g_Knife size is 33 and if you check is_user_connected(attacker) first.
I'm pretty sure the error is somewhere else or that you think you are using that code but you are wrong. Since you can't give us the exact line it is extremly difficult to say. |
| All times are GMT -4. The time now is 23:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.