View Single Post
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 07-21-2015 , 19:07   Re: % in string text
Reply With Quote #8

Quote:
Originally Posted by KissLick View Post
This was mentioned here many times. The right answer is %%.

Always when the string is formated (Format, FormatEx, PrintTo* functions etc.) it converts %% to %.
So, if you format your string twice, you need to use %%%% - first format output is %% and second format output is %.
No, the answer is to not double-format, as it generally implies massive security bugs.
__________________
asherkin is offline