Fixed generic error in expression on safe code fix.

This commit is contained in:
vbawol
2013-06-03 12:36:19 -05:00
parent 50b7fa10ab
commit afedd19b68

View File

@@ -97,20 +97,15 @@ serverVehicleCounter = [];
// fix for leading zero issues on safe codes after restart // fix for leading zero issues on safe codes after restart
if (_object isKindOf "VaultStorageLocked") then { if (_object isKindOf "VaultStorageLocked") then {
_codeCount = (count (toArray _ownerID));
if(_ownerID == 0) then { if(_codeCount == 3) then {
_ownerID = "0000"; _ownerID = format["0%1", _ownerID];
} else { };
_codeCount = (count (toArray _ownerID)); if(_codeCount == 2) then {
if(_codeCount == 3) then { _ownerID = format["00%1", _ownerID];
_ownerID = format["0%1", _ownerID]; };
}; if(_codeCount == 1) then {
if(_codeCount == 2) then { _ownerID = format["000%1", _ownerID];
_ownerID = format["00%1", _ownerID];
};
if(_codeCount == 1) then {
_ownerID = format["000%1", _ownerID];
};
}; };
}; };