Chatbox replaces % with #
#4

Quote:
Originally Posted by Calg00ne
Посмотреть сообщение
Yes, because '%' is the placeholder for variables. You can use '%%' to insert a literal percentage sign in format(), but you can't use it directly in chat.
I saw that I can use %% to insert literal % on the wiki, and I tried to replace any % in text[] under OnPlayerText() with str_replace("%","%%", text[]) but for some reason it didn't work...
PS: I am formating the player messages to insert [ID] after their name.
str_replace aquired from the wiki @ uf.inc
Reply


Messages In This Thread
Chatbox replaces % with # - by viKKmaN - 18.03.2011, 18:23
Re: Chatbox replaces % with # - by Calgon - 18.03.2011, 18:35
Re: Chatbox replaces % with # - by CJ101 - 18.03.2011, 18:36
Re: Chatbox replaces % with # - by viKKmaN - 18.03.2011, 20:43
Re: Chatbox replaces % with # - by Calgon - 18.03.2011, 20:56
Re: Chatbox replaces % with # - by viKKmaN - 18.03.2011, 21:06
Re: Chatbox replaces % with # - by Calgon - 18.03.2011, 21:18

Forum Jump:


Users browsing this thread: 3 Guest(s)