General > Developers Corner
I Can't Get This Chat Calculator To Work
Aaron113:
Have you ever thought of breaking the string down and doing this all through Lua? No google.
lavacano201014:
--- Quote from: Aaron113 on July 19, 2011, 10:06:12 PM ---Have you ever thought of breaking the string down and doing this all through Lua? No google.
--- End quote ---
Ideally I'd just check for "bad words" in the string and run a sanitized version through loadstring() but Garry removed that. Any other method would be too much hassle for me to maintain.
--edit--
uh HUH. So apparently the proper way to insert % in a Lua string is %%. So obvious and yet I'm so dumb for not thinking of it.
Thanks for all your help anyway guys!
Navigation
[0] Message Index
[*] Previous page
Go to full version