Apo Posted May 19, 2016 Share Posted May 19, 2016 hi please help me for fix my warning if (isElement(thePlayer)) then local attached = getElementAttachedTo ( source ) destroyElement(attached) destroyElement(source) attached = nil source = nil WARNING: newscript.lua:3: Bad argument @ 'getElementAttachedTo' [Expected element at argument 1, got nil] WARNING: newscript.lua:4: Bad argument @ 'destroyElement' [Expected element at argument 1, got boolean] WARNING: newscript.lua:5: Bad argument @ 'destroyElement' [Expected element at argument 1, got nil] Link to comment
ViRuZGamiing Posted May 19, 2016 Share Posted May 19, 2016 What's the source in this case? By what event is the function called? 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