Quote:
Originally Posted by Alby Fire
pawn Код:
new str[150]; #define SendFormattedMessage(%1,%2,%3,%4); \ format(str, sizeof str, %3, %4); \ SendClientMessage(%1, %2, str);
Example
pawn Код:
new a = 3; SendFormattedMessage(playerid, 0xffffffff, "Hello this is a formatted message look -> %d", a);
If you don't know how to use a function, I don't think you can create it correctly.
|
Can this handle more than one argument then?
(eg SendFormattedMessage(playerid, hex, "Test %s - you have %i", name, score);