35 lines
803 B
Plaintext
35 lines
803 B
Plaintext
#include "..\script_component.hpp"
|
|
|
|
/*
|
|
* Function: ramdb_db_fnc_hashDeleteId
|
|
* Author: Creedcoder, J.Schmidt
|
|
* Edit: 07.15.2024
|
|
*
|
|
* [Description]
|
|
* Remove hash table from DB.
|
|
*
|
|
* Arguments:
|
|
* 0: Name of stored hash table <STRING> (default: "")
|
|
*
|
|
* Return Value:
|
|
* N/A
|
|
*
|
|
* Examples:
|
|
* ["myKey"] call ramdb_db_fnc_hashDeleteId (Server or Singleplayer Only)
|
|
* ["myKey"] remoteExecCall ["ramdb_db_fnc_hashDeleteId", 2, false] (Multiplayer Only)
|
|
*
|
|
* Public: Yes
|
|
*/
|
|
|
|
params [["_key", "", [""]]];
|
|
|
|
#ifdef __A3__DEBUG__
|
|
diag_log text format ["ArmaRAMDb: 'ramdb_db_fnc_hashDeleteId' Key: '%1'", _key];
|
|
#endif
|
|
|
|
if (_key == "") exitWith {
|
|
diag_log text format ["ArmaRAMDb: 'ramdb_db_fnc_hashDeleteId' Invalid Input for Key '%1'", _key];
|
|
};
|
|
|
|
"ArmaRAMDb" callExtension ["hdelid", [_key]];
|