Jump to content

Erreur dans la console


Recommended Posts

Bonjour a tous, voilà je m'explique, j'ai un serveur mta dayz, et j'ai beaucoup d'erreur dans la console:

  
[2014-08-12 20:49:28] WARNING: [DayZ]/[DayZ-MTA]/DayZ/survivorSystem.lua:451: Bad argument @ 'setElementID' [Expected element at argument 1, got nil] 
[2014-08-12 20:49:28] WARNING: [DayZ]/[DayZ-MTA]/DayZ/survivorSystem.lua:453: Bad argument @ 'destroyElement' [Expected element at argument 1, got nil] 
[2014-08-12 20:52:45] WARNING: [DayZ]/[DayZ-MTA]/DayZ/survivorSystem.lua:451: Bad argument @ 'setElementID' [Expected element at argument 1, got nil] 
[2014-08-12 20:52:53] WARNING: [DayZ]/[DayZ-MTA]/DayZ/survivorSystem.lua:451: Bad argument @ 'setElementID' [Expected element at argument 1, got nil] 
[2014-08-12 20:52:54] WARNING: [DayZ]/[DayZ-MTA]/DayZ/survivorSystem.lua:451: Bad argument @ 'setElementID' [Expected element at argument 1, got nil] 
[2014-08-12 20:53:23] WARNING: [DayZ]/[DayZ-MTA]/DayZ/survivorSystem.lua:451: Bad argument @ 'setElementID' [Expected element at argument 1, got nil] 
[2014-08-12 20:53:46] WARNING: [DayZ]/[DayZ-MTA]/DayZ/survivorSystem.lua:451: Bad argument @ 'setElementID' [Expected element at argument 1, got nil] 
[2014-08-12 20:53:51] WARNING: [DayZ]/[DayZ-MTA]/DayZ/survivorSystem.lua:451: Bad argument @ 'setElementID' [Expected element at argument 1, got nil] 
[2014-08-12 20:54:16] WARNING: [DayZ]/[DayZ-MTA]/DayZ/survivorSystem.lua:451: Bad argument @ 'setElementID' [Expected element at argument 1, got nil] 
[2014-08-12 20:54:44] WARNING: [DayZ]/[DayZ-MTA]/DayZ/survivorSystem.lua:451: Bad argument @ 'setElementID' [Expected element at argument 1, got nil] 
[2014-08-12 20:54:44] WARNING: [DayZ]/[DayZ-MTA]/DayZ/survivorSystem.lua:453: Bad argument @ 'destroyElement' [Expected element at argument 1, got boolean] 
[2014-08-12 20:55:12] WARNING: [DayZ]/[DayZ-MTA]/DayZ/survivorSystem.lua:451: Bad argument @ 'setElementID' [Expected element at argument 1, got nil] 
[2014-08-12 20:55:12] WARNING: [DayZ]/[DayZ-MTA]/DayZ/survivorSystem.lua:453: Bad argument @ 'destroyElement' [Expected element at argument 1, got boolean] 
[2014-08-12 20:55:53] WARNING: [DayZ]/[DayZ-MTA]/DayZ/survivorSystem.lua:451: Bad argument @ 'setElementID' [Expected element at argument 1, got nil] 
  

Voici le code vers la ligne 451:

  
function weaponSwitchBack(previousWeaponID, currentWeaponID) 
  local weapon1 = getElementData(source, "currentweapon_1") 
  if not weapon1 then 
    return 
  end 
  local ammoData1, weapID1 = getWeaponAmmoType(weapon1) 
  local x, y, z = getElementPosition(source) 
  local rx, ry, rz = getElementRotation(source) 
  if previousWeaponID == weapID1 then 
    if elementWeaponBack[source] then 
      setElementID(player, "elementWeaponBack[source]") 
      detachElementFromBone(elementWeaponBack[source]) 
      destroyElement(elementWeaponBack[source]) 
      elementWeaponBack[source] = false 
    end 
    elementWeaponBack[source] = createObject(getWeaponObjectID(weapID1), x, y, z) 
    setObjectScale(elementWeaponBack[source], 0.875) 
    if elementBackpack[source] then 
      attachElementToBone(elementWeaponBack[source], source, 3, 0.19, -0.31, -0.1, 0, 270, -90) 
    else 
      attachElementToBone(elementWeaponBack[source], source, 3, 0.19, -0.11, -0.1, 0, 270, 10) 
    end 
  elseif currentWeaponID == weapID1 then 
    setElementID(player, "elementWeaponBack[source]") 
    detachElementFromBone(elementWeaponBack[source]) 
    destroyElement(elementWeaponBack[source]) 
    elementWeaponBack[source] = false 
  end 
end 
addEventHandler("onPlayerWeaponSwitch", getRootElement(), weaponSwitchBack) 
  

Donc voilà, j'espère que vous pourrez m'aider car j'ai fais des recherches, et j'ai pas trouvé :(

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