Jump to content

Need Help About MTA DayZ Error Scripts


daffabahy

Recommended Posts

  elseif currentWeaponID == weapID1 then 
    setElementID(player, "elementWeaponBack[source]") 
    detachElementFromBone(elementWeaponBack[source]) 
    destroyElement(elementWeaponBack[source]) 
    elementWeaponBack[source] = false 
  end 
end 
  

i have some small problem,Can you help me fix that?

[12:59:01] WARNING: [DayZ-MTA]/DayZ/survivorSystem.lua:491: Bad argument @ 'dest 
royElement' [Expected element at argument 1, got boolean] 

Link to comment
  • 1 month later...
  
elseif currentWeaponID == weapID1 then 
    if elementWeaponBack[source] then 
        setElementID(player, "elementWeaponBack[source]") 
        detachElementFromBone(elementWeaponBack[source]) 
        destroyElement(elementWeaponBack[source]) 
        elementWeaponBack[source] = false 
    end 
    end 
end 
  

Link to comment
  
elseif currentWeaponID == weapID1 then 
    if elementWeaponBack[source] then 
        setElementID(player, "elementWeaponBack[source]") 
        detachElementFromBone(elementWeaponBack[source]) 
        destroyElement(elementWeaponBack[source]) 
        elementWeaponBack[source] = false 
    end 
    end 
end 
  

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