Creating Chat Bubble with command?
#2

You can't use SendClientMessage to send formatted messages.
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)
And use like:
pawn Код:
SendFormattedMessage(playerid,red,"You have set your head text message to %s",params);
Untested, if not works then:
pawn Код:
new text[128];
format(text,sizeof(text),"You have set your head text message to %s",params);
SendClientMessage(playerid,red,text);
Good luck with your code.
Reply


Messages In This Thread
Creating Chat Bubble with command? - by Julian12345 - 22.05.2011, 18:24
Re: Creating Chat Bubble with command? - by Seven_of_Nine - 22.05.2011, 18:32
Re : Creating Chat Bubble with command? - by Myk3l - 22.05.2011, 18:36
AW: Creating Chat Bubble with command? - by Julian12345 - 22.05.2011, 19:14
Re: Creating Chat Bubble with command? - by Seven_of_Nine - 23.05.2011, 04:55

Forum Jump:


Users browsing this thread: 1 Guest(s)