SRL Archive - OSR Help

Error


Harry

2007-05-11 19:16:45

Hey, welcome here. I am making a chicken killer and I get this error: "[Error] (17810:1): Identifier expected" that is all. I have NOT done the killing part in this script yet, just anti-randoms and declareplayers and that stuff. I know it is probably a stupid mistake, but can someone please help me with it? Thanks!

-Harry

Special Ed

2007-05-11 19:29:22

begin  //Main Loop
Setup;
repeat
repeat
if not (loggedin) then break;
MakeCompass('N')
HighestAngle;
repeat
if not (loggedin) then break;
AntiRandoms;
Flag; //Umm... idk what it does... just have seen it a lot in other scripts...
Proggy; //PRINTS PROGGY TO DEBUG WINDOW
NextPlayer(True)
until (False)
end.

You forgot to add two more "until"s but you really don't need the two repeats at the top so I just got rid of one for you. Also I don't suggest using until(false) where I put it, build in a failsafe of some sort so it doesn't loop forever.

begin  //Main Loop
Setup;
repeat{<-------1}
if not (loggedin) then break;
MakeCompass('N')
HighestAngle;
repeat{<-------2}
if not (loggedin) then break;
AntiRandoms;
Flag; //Umm... idk what it does... just have seen it a lot in other scripts...
Proggy; //PRINTS PROGGY TO DEBUG WINDOW
until(false); {<-------2}
NextPlayer(True)
until (False){<-------1}
end.

Also "Flag" makes the script wait until it doesn't see a flag on the mini map.

Harry

2007-05-11 20:16:26

Thank you. :D +rep