Posts: 580
Threads: 26
Joined: Jan 2006
Reputation:
0
Before in 0.3b using % in sendclientmessage would crash the server.
Posts: 785
Threads: 22
Joined: Jun 2007
Reputation:
0
Actually I used it in format() and that's where it doesn't work. That SendClientMessage() was a random make-up - didn't test in it, but I guess there is no difference!?
Posts: 1,496
Threads: 78
Joined: Jun 2008
Reputation:
0
+1.
Before 0.3b(and even 0.3C RC3-3), "%%" or "%" in SendClientMessage/Player Chat= nothing.
Seems that "%%" in format is usable before 0.3C RC3-3 but now it can't.
It can only be used in dialogs.
I still hope that can be fixed for sure.
Posts: 482
Threads: 84
Joined: Nov 2010
Reputation:
0
%% works for textdraws and dialogs, not sure about gametexts.
% just sends nothing in chat.
Posts: 5
Threads: 1
Joined: Aug 2010
Reputation:
0
If you are using SendClientMessage etc. to send a formatted string you need to use %%%%
new str[10]; format(str,sizeof(str),"%d %%%%",25);
SendClientMessage(playerid,0xFFFFFFFF,str);
^ Will output 25 % in game
If you put %% in your string, SendClientMessage interprets this as %, therefore not showing a % in game.
If you put %%%% in your string, SendClientMessage interprets this as %% and will then display a % in game.