[SOLVED] Trying to make " % " sign in a ClientMessage
#1

i'm trying to add a % sign... in a client text.. which it aint working. i'm using this:

Code:
format(string, sizeof(string),"SAC: You healed %s to 100\%",PlayerInfo[giveplayerid][name]);
SendClientMessage(playerid,COLOR_BRIGHTRED,string);
The message it does display but the " % " sign don't... i read on wiki that if i need to make an escape character which it soppose to be written in the string... add an " \ " infront of the sign... but still don't work even i tried " \%; " which also didn't worked both occasions i got no errors at all... but that symbol is not displaying. I tried it with " %" alone.. no other chars and still.... didn't showed up
Reply
#2

It's '%%'

Not really a 0.3 issue.
Reply
#3

that didn't worked :/ it displayed '' also... i'm scripting it in 0.3 so i tghout here is in good section
Reply
#4

true i think its in the whole SAMP thing.. cant change it?
Reply
#5

well the thing is i saw it in some servers... which i belive that it can be done but i'm not sure how....
Reply
#6

Quote:
Originally Posted by silvan
well the thing is i saw it in some servers... which i belive that it can be done but i'm not sure how....
if you fix it please tell me so too!
Reply
#7

i'm trying.... when i did \\ it displayed 1 backslash ( " \ " ) which it did exactly how wiki explained but for some reason this damn % don't :/
Reply
#8

Well good luck on it man
Reply
#9

format(string, sizeof(string),"SAC: You healed %s to 100%s",PlayerInfo[giveplayerid][name],"%%");
SendClientMessage(playerid,COLOR_BRIGHTRED,string) ;
Reply
#10

thanks, Mikep that worked
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)