Jump to content

[Help] Killmessages


Recommended Posts

  • 4 weeks later...
  • Moderators
7 minutes ago, DogukanUcan said:

function destroyLine ( line )
	for k,part in ipairs(contentMessages[line]) do
		destroyWidget(part)
	end
	contentMessages[line] = {}
end

what should i do here?

 

The very reason for the error is unclear. Because the issue is happening somewhere else.

 

This is how you can get rid of the error, for this function only.

function destroyLine ( line )
	if contentMessages[line] then -- is there a `line` to destroy?
		for k,part in ipairs(contentMessages[line]) do
			destroyWidget(part)
		end
		contentMessages[line] = {}
		return true -- success < not required, but it might help you in the future solve the real issue.
	end
	return false -- something is wrong?
end

 

Edited by IIYAMA
Link to comment

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...