Jump to content

Help


FiGo

Recommended Posts

Posted
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)

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...