Run time error 4: index out of bounds
Quote:
PHP Code:
PHP Code:
|
Re: Run time error 4: index out of bounds
Show us the register of varibles
|
Re: Run time error 4: index out of bounds
When posting error logs, you need to post the whole error (not all of the error lines have [AMXX]). Also, does this error occur when you run the original plugin? Your changes to this function should not have "created" this situation.
|
Re: Run time error 4: index out of bounds
You can see all changes that i'v done in this funcion. I saw this error when i was using the original plugin, that's why i added "if(!is_user_bot)".
All rest of the code is the same, you can download SMA here http://forums.alliedmods.net/attachm...0&d=1253106683 I'm not posting this issue there becouse it's "unaproved/old plugin" so i think i wont get any help from the author. |
Re: Run time error 4: index out of bounds
Anytime you have an index out of bounds, you need to know what the value of the index when the error occurs. Typically, I wouldn't check if a victim is a player but maybe you need to do that.
|
Re: Run time error 4: index out of bounds
I see in that deathrun plugin values are reseted two times:
1. On player death 2. On new round I have removed part where values are reset on player's death and did that not on new round, but on player's spawn. I'v been getting this error when values were reset on player's death, now it's completely removed so i will see how it goes. By the way. In this deathrun plugin i can see these parts PHP Code:
PHP Code:
|
Re: Run time error 4: index out of bounds
Quote:
|
| All times are GMT -4. The time now is 20:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.