making SendFormatedMessage...
#1

pawn Код:
stock SendFormatedMessage(playerid, string[], {Float,_}:...)
{
    new Str[256];
    //I cant figure out how i can use that Float
    format(Str, sizeof (Str), string, THESE_IS_THE_PROBLEM);
    SendClientMessage(playerid, Color:ORANGE, Str);
    return 1;
}
Reply
#2

for, numargs, getarg & maybe setarg. (was going to warn you but I couldn't be bothered explaining why arguments aren't the most efficient method, and I was going on the code you provided with the format arguments)

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

Thx it helps
Reply
#4

Just use defines like ****** says

pawn Код:
new str[128];
#define SendFormatMessage(%0,%1,%2,%3) format(str, sizeof(str),%2,%3) && SendClientMessage(%0, %1, str)
#define SendFormatMessageToAll(%1,%2,%3) format(str, sizeof(str),%2,%3) && SendClientMessageToAll(%1, str)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)