30 lines
770 B
Plaintext
30 lines
770 B
Plaintext
#include "..\script_component.hpp"
|
|
|
|
/*
|
|
* Function: dragonfly_db_fnc_setup
|
|
* Author: Creedcoder, J.Schmidt
|
|
* Edit: 07.15.2024
|
|
*
|
|
* [Description]
|
|
* Setup extension connection settings.
|
|
*
|
|
* Arguments:
|
|
* 0: Name of host <STRING> (default: "localhost")
|
|
* 1: Port of host <NUMBER> (default: 6379)
|
|
* 2: Password of host <STRING> (default: "")
|
|
*
|
|
* Return Value:
|
|
* N/A
|
|
*
|
|
* Examples:
|
|
* ["localhost", 6379, "xyz123"] call dragonfly_db_fnc_setup (Server or Singleplayer Only)
|
|
* ["localhost", 6379, "xyz123"] remoteExecCall ["dragonfly_db_fnc_setup", 2, false] (Multiplayer Only)
|
|
*
|
|
* Public: Yes
|
|
*/
|
|
|
|
|
|
params [["_host", "localhost", [""]], ["_port", 6379, [0]], ["_password", "", [""]]];
|
|
|
|
"ArmaDragonflyClient" callExtension ["setup", [_host, _port, _password]];
|