Endif Expected ?

Blitz3D Forums/Blitz3D Beginners Area/Endif Expected ?

yea, I finally got it all cleaned up and it semi-compiles, but now I am getting objects do not exist, after it loads all the pictures in LoadStuff, then moves onto creategrid, all creategrid does is loop through from 0 to 9 twice to create a two dimensional grid, and assign it different pictures from hold based on a random number, and as far as I can tell, the rand numbers it picks are lower than the number of pictures in hold, so not sure, why I'm getting this. Will have to investigate that function thoroughly, any ideas how to make finding this kind of error easier ?