[Solved]Index out of bounds
Code:
L 07/13/2010 - 18:27:05: [AMXX] Run time error 4: index out of bounds PHP Code:
|
Re: Index out of bounds
You need to learn that it's much much easier if we know what line is the line referenced in the error.
The error is cause by the <= in the for loop. Must be only <. |
Re: Index out of bounds
Quote:
PHP Code:
|
Re: Index out of bounds
Found the error, read above.
|
Re: Index out of bounds
If I change that the command doesn't works
|
Re: Index out of bounds
Quote:
|
Re: Index out of bounds
I think fysiks wanted to say "<"
PHP Code:
|
Re: Index out of bounds
Quote:
|
Re: Index out of bounds
Emm yes i know that elements are accesed with indexes starting at 0, but i didn't understand this:
Quote:
|
Re: Index out of bounds
An array can hold any values in every index. When an array holds a string, the last element is reserved for a null char to signify end of string
|
| All times are GMT -4. The time now is 07:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.