Function LoadMyStuff() Local count% count% = 0 For count% = 0 To 18 hold.gameitems(count%) = New gameitems Next If count% = 0 hold(count%)\item = nS_LoadImage("../media/image0.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 count% = count% + 1 EndIf
In the above code segment, I am getting an EndIf Expected error message from blitz right after hold(count%)\item right here before \item. Any ideas why ? I thought it might be my blitz3d is corrupted or something, but then I compiled and ran a different blitz app and it worked fine. I am pulling my hair out, as I can find no reason for this error.