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=494596)



expected token: "#endif", but found "-end of file-" - Shirley - 14.02.2014

fixed


Re: expected token: "#endif", but found "-end of file-" - Avi Raj - 14.02.2014

remove slotid from the script and add #endif in the last.


Re: expected token: "#endif", but found "-end of file-" - Threshold - 14.02.2014

Without seeing your code, the above poster cannot possibly know where to place those lines. So ignore his post completely...

Please show us your full code if possible, so we can tell you exactly where to place those lines. Unless you can figure out where to add #endif by yourself...


Re: expected token: "#endif", but found "-end of file-" - Shirley - 14.02.2014

Quote:
Originally Posted by Avi Raj
Посмотреть сообщение
remove slotid from the script and add #endif in the last.
YOU ARE GENIUS IT WORKED +++++++++++++++++++++++++++++++++11111111111111111


Re: expected token: "#endif", but found "-end of file-" - Yashas - 14.02.2014

You'd come back again with a bug soon!!You are supposed to add #endif after #if.The pre-processor uses #if and #endif to identify code blocks.
#if = { and #endif }
The error you are getting is just same as not closing a if code block.


Re: expected token: "#endif", but found "-end of file-" - Threshold - 14.02.2014

Hopefully your script will meet the #if conditions, or basically none of your script will work -_-.

Good going Avi Raj, now he thinks he's solved the issue...


Re: expected token: "#endif", but found "-end of file-" - Vince - 14.02.2014

Doesn't matter, stolen script anyway.


Re: expected token: "#endif", but found "-end of file-" - Shirley - 14.02.2014

Quote:
Originally Posted by Vince
Посмотреть сообщение
Doesn't matter, stolen script anyway.
why u mad?