Strange problem "Run time error 4: index out of bounds"
This error fills my logs every day, and I still don't know why. Here are the lines where is the bug:
PHP Code:
L 11/07/2011 - 20:46:10: [AMXX] Displaying debug trace (plugin "items.amxx") L 11/07/2011 - 20:46:10: [AMXX] Run time error 4: index out of bounds Any ideas? |
Re: Strange problem "Run time error 4: index out of bounds"
You get index out of bounds either on iPtz or item_cost
If you can't find the error yourself only with looking at the code and you can't post more code then you should start debugging it like this: PHP Code:
|
Re: Strange problem "Run time error 4: index out of bounds"
Quote:
I use negative values for exceptions like the user doesn't have enough money to buy an item or has already the item. Here is the code: PHP Code:
PHP Code:
|
Re: Strange problem "Run time error 4: index out of bounds"
In case of exception you don't execute part of code that you would execute in normal case.
PHP Code:
|
Re: Strange problem "Run time error 4: index out of bounds"
Thank you Sylwester! It works perfectly now :). :bacon!:
|
| All times are GMT -4. The time now is 14:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.