Format text directly into "SendClientMessage" ?
#8

pawn Код:
// Salute to YSI & Lorenc_

#include <YSI/y_va>


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

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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)