22.05.2011, 18:32
You can't use SendClientMessage to send formatted messages.
Add this to the top of your script:
And use like:
Untested, if not works then:
Good luck with your code.
Add this to the top of your script:
pawn Код:
#define SendFormattedMessage(%0,%1,%2,%3) \
new text[128]; \
format(text,sizeof(text),%2,%3); \
SendClientMessage(%0,%1,text)
pawn Код:
SendFormattedMessage(playerid,red,"You have set your head text message to %s",params);
pawn Код:
new text[128];
format(text,sizeof(text),"You have set your head text message to %s",params);
SendClientMessage(playerid,red,text);