yukitokun1996 Posted September 12, 2016 Share Posted September 12, 2016 ERROR: [system]\item-system\s_item_system.lua:27: attempt to index local 'text' (a number value) this is my code : function removeOOC(text) if not text then outputChatBox("Error Code 001") return "" end return text:gsub("%s*%(%(([^)]+)%)%)%s*","") -- removes the (( )) part end Link to comment
zneext Posted September 16, 2016 Share Posted September 16, 2016 You're passing text as a number somewhere, When you need to pass a string, Althought if you do want to be able to pass numbers use tostring to convert them to strings and be able to use gsub. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now