PDA

View Full Version : expected token: "#endif", but found "-end of file-"


Cedimedi
20/02/2011, 01:18 PM
Ohai.
I get this crap error when i compile.."error 001: expected token: "#endif", but found "-end of file-"" I see suddenly removed the #endif somewhere. But my script has over 32000 lines.. good luck with finding that :(

What can I do? And if there is nothing else than checking every single line, is there a function to ignore the error?

greetz

Markx
20/02/2011, 01:21 PM
put #endif after the prints, should work

[03]Garsino
20/02/2011, 01:22 PM
search (ctrl+f) for

#if

Then see if you can find the missing #endif

Cedimedi
20/02/2011, 01:29 PM
put #endif after the prints, should work

The console prints? Nah, that doesnt work :(

Garsino;1080235']search (ctrl+f) for

#if

Then see if you can find the missing #endif

hmm, i allready tried that but i think i was to fast and didn't see it. Well, it will take some time but if theres no resolve i will try that.



thanks

rjjj
20/02/2011, 02:21 PM
You have to put #endif after #if, see what #if is doing as a conditional to know where #endif have to stay :p

Or, put the code after #if here in the thread.

I hope that i have helped :p

Kyle_Soul
17/04/2012, 02:07 AM
You should put #endif in the very last line
return 1;
}
#endif

MrWorldWide
07/06/2014, 08:25 AM
If you dont have

#endif after ''Gamemode by your name'' it will say that.

so it should look like..

main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}

#endif

BroZeus
07/06/2014, 08:28 AM
If you dont have

#endif after ''Gamemode by your name'' it will say that.

so it should look like..
lool
srsly answering an 2 years old thread :rolf:

Clergy
08/06/2014, 03:24 PM
Just add #endif at the bottom of your script.

BroZeus
08/06/2014, 03:54 PM
oh god didnt u read what i said above its a 2 years old thread