dragonfly/addons/db/functions/fnc_hashSetIdBulk.sqf
2026-01-13 20:19:07 -06:00

36 lines
1.1 KiB
Plaintext

#include "..\script_component.hpp"
/*
* Function: dragonfly_db_fnc_hashSetIdBulk
* Author: Creedcoder, J.Schmidt
* Edit: 07.15.2024
*
* [Description]
* Set multiple field/value pairs in hash stored at key from DB.
*
* Arguments:
* 0: Key followed by fields and values to store in hash <ARRAY> (default: [])
*
* Return Value:
* N/A
*
* Examples:
* [[getPlayerUID player, "loadout", [getUnitLoadout player], "position", [getPosASLVisual player]]] call dragonfly_db_fnc_hashSetIdBulk (Server or Singleplayer Only)
* [[getPlayerUID player, "loadout", [getUnitLoadout player], "position", [getPosASLVisual player]]] remoteExecCall ["dragonfly_db_fnc_hashSetIdBulk", 2, false] (Multiplayer Only)
*
* Public: Yes
*/
params [["_data", [], [[]]]];
#ifdef __A3__DEBUG__
diag_log text format ["ArmaDragonflyClient: 'dragonfly_db_fnc_hashSetIdBulk' Data: %1", _data];
#endif
if (_data isEqualTo []) exitWith {
diag_log text format ["ArmaDragonflyClient: 'dragonfly_db_fnc_hashSetIdBulk' Invalid Input for Data '%1'", _data];
};
"ArmaDragonflyClient" callExtension ["hsetid", _data];