expecting identifier
BlitzPlus Forums/BlitzPlus Beginners Area/expecting identifier
| ||
I know it's late but I've got a problem. I go to run my program and it's saying expecting identifier . Anybody know what this means and how to rectify this. |
| ||
..again, please post the code that throws the error, we're not mind readers or near having telepathic abilities. ;-) |
| ||
here it is AppTitle spiders Graphics 640,480 Global spider SystemProperty( "AppDir" ) + "\spiders from hell" SetBuffer BackBuffer() spider=LoadImage("spider.bmp") x=200 y=200 .Repeat Flip DrawImage spider,x,y If KeyDown(30) Then x=x-1 If KeyDown(32) Then x=x+1 If KeyDown(31) Then y=y+1 If KeyDown(17) Then y=y-1 If KeyDown(1) Then End For n=1 To 1000000 Next Goto Repeat |
| ||
Ok 'Repeat' is a reserved keyword. Use something else like RepeatAgain or something like that, you'll notice it if the syntax hilighter turns it red or some color depending on your ide setup. You can't use reserved keywords as variables, goto labels ,etc. |
| ||
Thanks for that . |