A problem with a array

BlitzMax Forums/BlitzMax Programming/A problem with a array

Sanctus(Posted 2006) [#1]
I got my isometric system working but I tryed to change it so that it suports some new stuff and I get a error
Atempt to index array element beyond array length
I know from where this error usualy comes but now I can't seem to solve it
Pls take a look at it and tell me wath the hell is wrong...



Jake L.(Posted 2006) [#2]
While posting this thread you could have trapped down the error by yourself. So check your loops, write some debuglogs in it, find the error and fix it. Simple!

If you know what you've done last and it worked before, begin your checks there...


Fabian.(Posted 2006) [#3]
Change
For x = 0 To width - 1
to
For x = 0 Until width
Maybe it helps


Sanctus(Posted 2006) [#4]
nah i got it fixed a day after I posted...
The for lloop was ok but the drawimage had a progblem
i tryed to draw a image that didn't existed