mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-10-05 00:49:34 +03:00
1 parent
5ef4f4b2ba
commit
dd2ba5cf6a
1 file changed
+4
-4
@@ -13,8 +13,8 @@ _list = [];
|
|||||||
_file = toArray (toLower(preprocessFile _x));
|
_file = toArray (toLower(preprocessFile _x));
|
||||||
_sum = 0;
|
_sum = 0;
|
||||||
_count = {_sum = _sum + _x; true} count _file;
|
_count = {_sum = _sum + _x; true} count _file;
|
||||||
if (_count > 999999) then {_count = _count % 999999}; //Prevent scientific notation when converting to string below
|
if (_count > 999999) then {_count = _count mod 999999}; //Prevent scientific notation when converting to string below
|
||||||
if (_sum > 999999) then {_sum = _sum % 999999};
|
if (_sum > 999999) then {_sum = _sum mod 999999};
|
||||||
_list set [count _list,[_count,_sum]];
|
_list set [count _list,[_count,_sum]];
|
||||||
} forEach _files;
|
} forEach _files;
|
||||||
|
|
||||||
@@ -28,8 +28,8 @@ _temp setVehicleInit (str formatText["
|
|||||||
_file = toArray (toLower(preprocessFile _x));
|
_file = toArray (toLower(preprocessFile _x));
|
||||||
_sum = 0;
|
_sum = 0;
|
||||||
_count = {_sum = _sum + _x; true} count _file;
|
_count = {_sum = _sum + _x; true} count _file;
|
||||||
if (_count > 999999) then {_count = _count % 999999};
|
if (_count > 999999) then {_count = _count mod 999999};
|
||||||
if (_sum > 999999) then {_sum = _sum % 999999};
|
if (_sum > 999999) then {_sum = _sum mod 999999};
|
||||||
_list set [count _list,[_count,_sum]];
|
_list set [count _list,[_count,_sum]];
|
||||||
} forEach %1;
|
} forEach %1;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user