SendClientMSG
#1

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

search for
PHP код:
#define SendClientMSG 
Reply
#3

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

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)