[Bug?] Percent character
#6

Quote:
Originally Posted by exora
Посмотреть сообщение
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!?
Not exactly... If my "theory" is valid;

format() was coded to be capable for handling percentages for variables, whereas I don't believe that SendClientMessage() was, it just handles the data its given, and format compiles a string with the strings (if any) and text to send as a client message when used together.

format accepts %% insert a literal percentage, so SendClientMessage() would not (at least I think...) as it's just expecting a string with normal data to parse.

I don't quite understand why % wouldn't work in a SendClientMessage() execution though, if ^ is correct.
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)