SendClientMSG - 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: SendClientMSG (
/showthread.php?tid=585159)
SendClientMSG -
Terrorizt - 11.08.2015
Hello,
I have a script (not made by me) that uses SendClientMessage combined with format this is an example of it:
Код:
SendClientMSG(kicked,COLOR_GREY,"Reason: %s", reason);
Is there an include for it or it's a stock because i can't find it
Re: SendClientMSG -
nezo2001 - 11.08.2015
search for
PHP код:
#define SendClientMSG
Re: SendClientMSG -
Vince - 11.08.2015
I would advise against this lazy approach because it results in a lot of unnecessary variables and control structures. Especially if you use multiple of these macros beneath each other, in which case it will generate equally as many variables and equally as many do-while loops, while it would need one variable and no loops were it done the traditional way.
Re: SendClientMSG -
HydraHumza - 11.08.2015
Quote:
Originally Posted by Vince
I would advise against this lazy approach because it results in a lot of unnecessary variables and control structures. Especially if you use multiple of these macros beneath each other, in which case it will generate equally as many variables and equally as many do-while loops, while it would need one variable and no loops were it done the traditional way.
|
Agree Sir
Re: SendClientMSG -
Roberto80 - 12.08.2015
Quote:
Originally Posted by Vince
I would advise against this lazy approach because it results in a lot of unnecessary variables and control structures. Especially if you use multiple of these macros beneath each other, in which case it will generate equally as many variables and equally as many do-while loops, while it would need one variable and no loops were it done the traditional way.
|
Exactly.
Anyway maybe its not a define(#define),maybe its a stock