Endif Expected ?

Blitz3D Forums/Blitz3D Beginners Area/Endif Expected ?

erm....

You can replace that really long function with a much shorter version:
Function LoadMyStuff()
	For count% = 0 To 18
	  hold(count%)\item = nS_LoadImage("../media/image"+Str$(count)+".jpg",4,True)
	  hold(count%)\anim1 = nS_LoadAnimImage("../media/particle1.jpg",GX#,GY#,0,10,4,True)
	  hold(count%)\anim2 = nS_LoadAnimImage("../media/particle2.jpg",GX#,GY#,0,10,4,True)
	  hold(count%)\gridx% = -1
	  hold(count%)\gridy% = -1
	  hold(count%)\points% = 0 ;0=stopped
	  hold(count%)\time% = 0
	  hold(count%)\lives% = 0
	  hold(count%)\ID% = count%
	  hold(count%)\status% = 0 ;0=stopped
	  hold(count%)\puzzle% = 0 ;not a puzzle piece
	  hold(count%)\nextitem% = ID_free
	Next
End Function