mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
See Kronzky's note: https://community.bistudio.com/wiki/count You can only use count to iterate through an array if all elements in the array are of the same data type. In this case you have an array with strings (type), arrays (worldspace, inventory, hitpoints) and numbers (fuel, ownerID). You need to use forEach instead. This error explains the problem people were having with safe inventories being empty when they open them after a restart: http://epochmod.com/forum/index.php?/topic/13423-safe-is-empty-after-restart-if-you-open-it/ https://github.com/vbawol/DayZ-Epoch/issues/1368 https://github.com/vbawol/DayZ-Epoch/issues/1422