mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-19 18:06:32 +03:00
Fixed generic error in expression on safe code fix.
This commit is contained in:
@@ -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];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user