SA-MP Forums Archive
#define or native? - 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: #define or native? (/showthread.php?tid=435914)



#define or native? - radiobizza - 09.05.2013

How is better?
PHP Code:
#define SCM SendClientMessage 
or
PHP Code:
native SCM(playeridcolor, const message[]); 



Re: #define or native? - DaRk_RaiN - 09.05.2013

Not sure of the second option but for me
pawn Code:
#define SCM SendClientMessage



Re: #define or native? - Neavorce - 09.05.2013

pawn Code:
#define SCM SendClientMessage
or
pawn Code:
native SCM( playerid, color, const message[ ] ) = SendClientMessage;
Both of these solutions work.


Re: #define or native? - radiobizza - 09.05.2013

Quote:
Originally Posted by DaRk_RaiN
View Post
Not sure of the second option but for me
pawn Code:
#define SCM SendClientMessage
I see this on a gamemode and this work


Re: #define or native? - TheArcher - 09.05.2013

I think that they're both the same. That could be a solution for include functions like solving commented natives for functions.