Code:
2:55:50 Error in expression < addMagazineCargoGlobal [_x,(_objWpnQty select _countr)];
};
};
_countr = _count>
12:55:50 Error position: <select _countr)];
};
};
_countr = _count>
12:55:50 Error Zero divisor
12:55:50 File z\addons\dayz_server\system\server_monitor.sqf, line 123
12:55:50 Error in expression < addMagazineCargoGlobal [_x,(_objWpnQty select _countr)];
};
};
};
Code:
// Set whether or not buildable is destructable
if (typeOf(_object) in allbuildables_class) then {
diag_log ("SERVER: in allbuildables_class:" + typeOf(_object) + " !");
for "_i" from 0 to ((count allbuildables) - 1) do
{
_classname = (allbuildables select _i) select _i - _i + 1;
_result = [_classname,typeOf(_object)] call BIS_fnc_areEqual;
if (_result) then {
_requirements = (allbuildables select _i) select _i - _i + 2;
LINE 123 _isDestructable = _requirements select 13;
diag_log ("SERVER: " + typeOf(_object) + " _isDestructable = " + str(_isDestructable));
if (!_isDestructable) then {
diag_log("Spawned: " + typeOf(_object) + " Handle Damage False");
_object addEventHandler ["HandleDamage", {false}];
};
};
};
//gateKeypad = _object addaction ["Defuse", "\z\addons\dayz_server\compile\enterCode.sqf"];
};
just wondering if a mod i added screwed it up for me. thanks for your help