Raised This Month: $51 Target: $400
 12% 

percent symbol in chat


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KiLLeR.
Senior Member
Join Date: Jul 2014
Location: Bulgaria
Old 04-07-2020 , 11:08   percent symbol in chat
Reply With Quote #1

Yeah I know to show percent symbol I should double write it like that.
PHP Code:
client_print(0print_chat"test: 10%%");
client_print(0print_console"test: 10%%"); 
but it still doesn't work either for chat or console.

Note: I notice that it works for server_print function

Last edited by KiLLeR.; 04-07-2020 at 11:08.
KiLLeR. is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 04-07-2020 , 12:01   Re: percent symbol in chat
Reply With Quote #2

try "\%" or "^%^"
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 04-07-2020 , 12:31   Re: percent symbol in chat
Reply With Quote #3

I believe % is filtered because of known chat exploits. Not sure if there's a way around it(assuming %% doesn't work), but try checking the github repo for half life.
__________________
HamletEagle is offline
KiLLeR.
Senior Member
Join Date: Jul 2014
Location: Bulgaria
Old 04-08-2020 , 11:26   Re: percent symbol in chat
Reply With Quote #4

Quote:
Originally Posted by Napoleon_be View Post
try "\%" or "^%^"
None of both works..
KiLLeR. is offline
KiLLeR.
Senior Member
Join Date: Jul 2014
Location: Bulgaria
Old 04-08-2020 , 11:27   Re: percent symbol in chat
Reply With Quote #5

Quote:
Originally Posted by HamletEagle View Post
I believe % is filtered because of known chat exploits. Not sure if there's a way around it(assuming %% doesn't work), but try checking the github repo for half life.
You mean this? https://github.com/ValveSoftware/halflife

Update #1: I just found that. https://github.com/ValveSoftware/halflife/issues/2611

Update #2: And i found solution:
PHP Code:
client_print(0print_chat"Test: 10%%%%"); //=> prints 10% 

Last edited by KiLLeR.; 04-08-2020 at 11:37.
KiLLeR. is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:16.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode