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



SendClientMessageEx. - HY - 10.02.2015

Does anyone have this function: SendClientMessageEx.
Or SendFormattedMessage. Will help me so much:

pawn Код:
SendClientMessageEx(playerid, COLOR_YELLOW, "My name it's: %s", Name(playerid));
+Rep.

*Searched, didn't find.*


Re: SendClientMessageEx. - Sime30 - 10.02.2015

https://sampforum.blast.hk/showthread.php?tid=146093


Re: SendClientMessageEx. - ReD_HunTeR - 10.02.2015

pawn Код:
#include <YSI/y_va>


stock SendClientMessageFormatted(playerid, colour, format[], va_args<>)
{
    new
        out[128]
    ;
    va_format(out, sizeof(out), format, va_start<3>);
    SendClientMessage(playerid, colour, out);
}

stock SendClientMessageFormattedToAll(colour, format[], va_args<>)
{
    new
        out[128]
    ;
    va_format(out, sizeof(out), format, va_start<2>);
    SendClientMessageToAll(colour, out);
}
this?


Re: SendClientMessageEx. - HY - 10.02.2015

@Sime30 thanks. Ryder's code works.

@ReD_HunTeR thanks. Didn't tested, already got the answer.


AW: SendClientMessageEx. - Nero_3D - 10.02.2015

Thats not Ryder's code, its from ****** or ZeeX but that doesn't matter as it can easily be recreated

At least use a "modern" version not this one from 2010 where emit became "popular" (also it was only to show how to work with emit therefor these huge comments in the function), use y_va or use a function without loops

There are probably more similiar function out there but I like to quote myself
http://forum.sa-mp.com/showpost.php?...postcount=4225


Respuesta: SendClientMessageEx. - !R1Ch@rD! - 11.02.2015

I am in doubt about this , it would be normal to put it is? no macro ? or has ?