SA-MP Forums Archive
expected token: "#endif", but found "-end of file-" - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: expected token: "#endif", but found "-end of file-" (/showthread.php?tid=228814)



expected token: "#endif", but found "-end of file-" - Cedimedi - 20.02.2011

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


Re: expected token: "#endif", but found "-end of file-" - Markx - 20.02.2011

put #endif after the prints, should work


Re: expected token: "#endif", but found "-end of file-" - [03]Garsino - 20.02.2011

search (ctrl+f) for
pawn Код:
#if
Then see if you can find the missing #endif


Re: expected token: "#endif", but found "-end of file-" - Cedimedi - 20.02.2011

Quote:
Originally Posted by Markx
Посмотреть сообщение
put #endif after the prints, should work
The console prints? Nah, that doesnt work

Quote:
Originally Posted by [03]Garsino
Посмотреть сообщение
search (ctrl+f) for
pawn Код:
#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


Re: expected token: "#endif", but found "-end of file-" - rjjj - 20.02.2011

You have to put #endif after #if, see what #if is doing as a conditional to know where #endif have to stay

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

I hope that i have helped


Re: expected token: "#endif", but found "-end of file-" - Kyle_Soul - 17.04.2012

You should put #endif in the very last line
pawn Код:
return 1;
}
#endif



Re: expected token: "#endif", but found "-end of file-" - MrWorldWide - 07.06.2014

If you dont have

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

so it should look like..

Quote:

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

#endif



Re: expected token: "#endif", but found "-end of file-" - BroZeus - 07.06.2014

Quote:
Originally Posted by MrWorldWide
Посмотреть сообщение
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:


Re: expected token: "#endif", but found "-end of file-" - Clergy - 08.06.2014

Just add #endif at the bottom of your script.


Re: expected token: "#endif", but found "-end of file-" - BroZeus - 08.06.2014

oh god didnt u read what i said above its a 2 years old thread