Help (#endif)
#1

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?
Reply
#2

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

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.
Reply
#4

What benefits you bring? or is it just something unnecessary?
Reply
#5

Just remove this from your gamemode:

Код:
#end if
And find this:

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

#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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)