Jump to content

help


Apo

Recommended Posts

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

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