SA-MP Forums Archive
Shorting SendClientMessage - 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: Shorting SendClientMessage (/showthread.php?tid=317501)



Shorting SendClientMessage - milanosie - 11.02.2012

Hi there, How would my public/stock for Shorting SendClientMessage into msgplayer look like?

Any example would be appreciated since I have no idea how this work, and I am not the best in publics/stocks

thanks


Re: Shorting SendClientMessage - [XST]O_x - 11.02.2012

What do you mean?
pawn Код:
#define msgplayer SendClientMessage
That can work.
pawn Код:
stock msgplayer(playerid, color, msg[])
{
    return SendClientMessage(playerid, color, msg);
}
Will also work.


Re: Shorting SendClientMessage - milanosie - 11.02.2012

ty, easyer then I tought