Jump to content

help


Apo

Recommended Posts

Posted

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]

only god (الله) اشهد ان لا اله الا الله واشهد ان محمد رسول الله

Posted

What's the source in this case? By what event is the function called?

"If debugging is the process of removing software bugs, then programming must be the process of putting them in."

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