• The 0.00 Bug
    5 replies, posted
Would someone mind telling me how to remove the 0.00 after someone talks?
Could you elaborate?
Don't use string.gsub, string.Replace or string.Trim directly in a RunConsoleCommand call in your custom chatbox. [editline]noninja[/editline] Weren't Replace and Trim fixed?
[QUOTE=raBBish;28295206]Weren't Replace and Trim fixed?[/QUOTE] I dont know about Trim but i use Replace and that works fine.
Put a file called openaura in lua/autorun and add this to the file. [lua] string._gsub = string.gsub function string.gsub(wat,the,hell) local t,n = string._gsub(wat,the,hell) return t end if SERVER then AddCSLuaFile("openaura.lua") end [/lua]
[QUOTE=Persious;28296321]Put a file called openaura in lua/autorun and add this to the file. [/QUOTE] And potentially break other scripts? Nope. Fix it where the actual error is, ie. [lua]RunConsoleCommand( "say", string.Replace(text, "\"", "~") ); -- fixed: text = string.Replace( text, "\"", "~" ) RunConsoleCommand( "say", text );[/lua]
Sorry, you need to Log In to post a reply to this thread.