Quote:
Originally Posted by Alucard^
I think fysiks wanted to say "<"
PHP Code:
for(new i = 0;i < sizeof (Restrts);i++)
You have to remember that the last number of the array size is null... so if you use "<=" you use Restrts[9] and you should use at Restrt[8] (9 is null).
|
An array is sized with the number specified but elements are accessed with indexes starting at 0. The last element being null is really only with null terminated strings. Index out of bounds is telling you that your trying to reference memory that doesn't exist. If you size the array at 8 then the last element is 7.
__________________