SendClientMessageEx.
#1

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

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

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

@Sime30 thanks. Ryder's code works.

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)