
All checks were successful
Build / Build (push) Successful in 28s
This commit refactors several client-side functions to improve code consistency and readability. - Standardizes function descriptions by removing redundant "Function: forge_client..." prefixes and "[Description]" sections, focusing on concise descriptions of the function's purpose. - Updates variable handling in arsenal functions to use GVAR and EGVARS for default values, improving consistency and reducing code duplication. - Removes the bank init function as it is no longer needed. - Adds a done variable to the preinit file.
38 lines
579 B
Plaintext
38 lines
579 B
Plaintext
#include "..\script_component.hpp"
|
|
|
|
/*
|
|
* Author: IDSolutions
|
|
* Converts a date to a string in the format "HH:MM".
|
|
*
|
|
* Arguments:
|
|
* 0: Date <ARRAY> - The date to convert
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [date] call forge_client_phone_fnc_dateToHhMm;
|
|
*
|
|
* Public: Yes
|
|
*/
|
|
|
|
private ["_h", "_m"];
|
|
|
|
_h = _this select 0;
|
|
_m = _this select 1;
|
|
|
|
_HHMM = [];
|
|
|
|
if (_h < 10) then {
|
|
_HHMM = [format ["0%1", _h]];
|
|
} else {
|
|
_HHMM = [format ["%1", _h]];
|
|
};
|
|
|
|
if (_m < 10) then {
|
|
_HHMM = _HHMM + [format ["0%1", _m]];
|
|
} else {
|
|
_HHMM = _HHMM + [format ["%1", _m]];
|
|
};
|
|
|
|
_HHMM; |