FiGo Posted December 22, 2020 Share Posted December 22, 2020 addEvent ( "AEupdatesinfo.fillUpdatesMemo", true ) addEventHandler ( "AEupdatesinfo.fillUpdatesMemo", root,function (text) local updatesInfo = string.gsub(text, "\r", "") guiSetText(updatesMemo, tostring(text)) end) error at line 279 bad argument #1 to 'gsub' (string expected got nil) Link to comment
Tekken Posted December 22, 2020 Share Posted December 22, 2020 It’s as simple as it gets, when you call that event the text argument it’s not defined nil that means there’s nothing. You should have a string like this: "Some text to be added"; So to fix that problem you need to find where the event it’s called to see why you have nil instead of a string. 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