SA-MP Forums Archive
Help (#endif) - 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: Help (#endif) (/showthread.php?tid=587366)



Help (#endif) - SukMathcuck - 30.08.2015

Hello, I wonder if I can put..

PHP код:
#endif 
at the end of my gamemode, because I do not know what it is, can anyone help me?


Re: Help (#endif) - Sellize - 30.08.2015

Take a look here https://sampwiki.blast.hk/wiki/Keywordsirectives


Re: Help (#endif) - iZN - 30.08.2015

This is used to end a #if define preprocessor, why would you want to add it, if you've no clue about it at the first time, weird.


Re: Help (#endif) - SukMathcuck - 30.08.2015

What benefits you bring? or is it just something unnecessary?


Re: Help (#endif) - Fancy - 30.08.2015

Just remove this from your gamemode:

Код:
#end if
And find this:

Код:
#if defined FILTERSCRIPT
And remove it also


Re: Help (#endif) - Roberto80 - 30.08.2015

#if is used alot in includes,like:
#if !defined Color_White
#define Color_White -1
#endif
So here,in some includes,if you don't define color white,it will define it automatically and end the if!
So same for filterscript:
#if defined FILTERSCRIPT
public onfilterscript init bla bla bla
#else (if not)
public ongamemode init bla bla bla
#endif