No_name_No Posted May 30, 2017 Share Posted May 30, 2017 (edited) Hello everyone. Sorry for my English. This warning flood every 2-3 seconds: WARNING: freeroam/gui.lua:442: Bad argument @ 'guiSetText' [Expected gui-element at argument 1, got boolean] [DUP x8]. function setControlNumber(...) local args = {...} local num = table.remove(args) guiSetText(getControl(unpack(args)), tostring(num)) end Edited May 30, 2017 by No_name_No Link to comment
koragg Posted May 30, 2017 Share Posted May 30, 2017 (edited) function setControlNumber(...) local args = {...} local num = table.remove(args) if getControl(unpack(args) then guiSetText(getControl(unpack(args)), tostring(num)) end end Try this. Edited May 30, 2017 by koragg Btw what is "getControl" ? 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