expecting identifier

BlitzPlus Forums/BlitzPlus Beginners Area/expecting identifier

pfaber11(Posted 2016) [#1]
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.


RustyKristi(Posted 2016) [#2]
..again, please post the code that throws the error, we're not mind readers or near having telepathic abilities. ;-)


pfaber11(Posted 2016) [#3]
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


RustyKristi(Posted 2016) [#4]
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.


pfaber11(Posted 2016) [#5]
Thanks for that .