[Bug?] Percent character
#9

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.
Reply


Messages In This Thread
[Bug?] Percent character - by woot - 09.12.2010, 12:12
Re: [Bug?] Percent character - by JernejL - 09.12.2010, 12:22
Re: [Bug?] Percent character - by The_Moddler - 09.12.2010, 13:12
Re: [Bug?] Percent character - by __ - 09.12.2010, 13:51
Re: [Bug?] Percent character - by woot - 09.12.2010, 13:58
Re: [Bug?] Percent character - by __ - 09.12.2010, 14:08
Re: [Bug?] Percent character - by leong124 - 09.12.2010, 14:40
Re: [Bug?] Percent character - by The_Gangstas - 09.12.2010, 15:05
Re: [Bug?] Percent character - by CodeRae - 09.12.2010, 21:35
Re: [Bug?] Percent character - by cessil - 09.12.2010, 22:10

Forum Jump:


Users browsing this thread: 1 Guest(s)