09.12.2010, 21:35
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.
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.