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,10 +97,6 @@ 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 {
|
||||||
|
|
||||||
if(_ownerID == 0) then {
|
|
||||||
_ownerID = "0000";
|
|
||||||
} else {
|
|
||||||
_codeCount = (count (toArray _ownerID));
|
_codeCount = (count (toArray _ownerID));
|
||||||
if(_codeCount == 3) then {
|
if(_codeCount == 3) then {
|
||||||
_ownerID = format["0%1", _ownerID];
|
_ownerID = format["0%1", _ownerID];
|
||||||
@@ -112,7 +108,6 @@ serverVehicleCounter = [];
|
|||||||
_ownerID = format["000%1", _ownerID];
|
_ownerID = format["000%1", _ownerID];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
_object setVariable ["CharacterID", _ownerID, true];
|
_object setVariable ["CharacterID", _ownerID, true];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user