
This commit includes the following changes: - Updates the build environment in the GitHub Actions workflow to use `ubuntu-latest` instead of `ubuntu-22.04`. - Adds `playerGroup2Server` to the XEH_PREP.hpp file. - Updates the picture path in CfgMods.hpp to include the file extension.
26 lines
551 B
Plaintext
26 lines
551 B
Plaintext
#include "..\script_component.hpp"
|
|
|
|
/*
|
|
* Function: forge_server_db_fnc_createStore
|
|
* Author: J. Schmidt
|
|
*
|
|
* Description:
|
|
* Creates a new collection in the database
|
|
*
|
|
* Arguments:
|
|
* 0: _name - Store name <STRING>
|
|
* 1: _schema - Store schema <ARRAY>
|
|
*
|
|
* Return Value:
|
|
* Store object or nil if failed
|
|
*/
|
|
|
|
params [["_name", "", [""]], ["_schema", [], [[]]]];
|
|
|
|
if (_name isEqualTo "") exitWith {
|
|
ERROR_MSG("Store name cannot be empty");
|
|
nil
|
|
};
|
|
|
|
private _database = call FUNC(verifyDB);
|
|
_database call ["createStore", [_name, _schema]] |