property Posted July 14, 2016 Share Posted July 14, 2016 Hi! My problem the that the dayz inventory take all buttom error the script. Take all button Code: function onPlayerMoveItemInInventoryALLL () local itemName = guiGridListGetItemText ( gridlistItems["loot"], guiGridListGetSelectedItem ( gridlistItems["loot"] ), 1 ) local quant = guiGridListGetItemText ( gridlistItems["loot"], guiGridListGetSelectedItem ( gridlistItems["loot"] ), 2) local quantfinal = getItemSlots(itemName)*quant --[[ 848. row error message]] if isPlayerInLoot() then if getElementData(isPlayerInLoot(),itemName) and getElementData(isPlayerInLoot(),itemName) >= 1 then if not isToolbeltItem(itemName) then if getPlayerCurrentSlots() + quantfinal <= getPlayerMaxAviableSlots() then if not playerMovedInInventory then triggerEvent("onPlayerMoveItemInInventory",getLocalPlayer(),itemName,isPlayerInLoot()) playerMovedInInventory = false end else startRollMessage2("Inventory", "Inventory is full!", 255, 22, 0 ) -- [iD:0000005 - Several grammar + spelling mistakes and typos] //L return end else playerMovedInInventory = false triggerEvent("onPlayerMoveItemInInventory",getLocalPlayer(),itemName,isPlayerInLoot()) end end if isPlayerInLoot() then local gearName = guiGetText(headline["loot"]) local col = getElementData(getLocalPlayer(),"currentCol") setTimer(refreshInventory,200,2) setTimer(refreshLoot,200,2,col,gearName) end end end function aaxa() local quant = guiGridListGetItemText ( gridlistItems["loot"], guiGridListGetSelectedItem ( gridlistItems["loot"] ), 2) setTimer(onPlayerMoveItemInInventoryALLL,100,quant) end addEventHandler ( "onClientGUIClick", buttonItems["loot2"], aaxa ) debugscript message (error): DayZ\inventory.lua:848: attempt to perform arithmetic on a boolean value 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