5fa1bc18fd
Basically, a basic simulation manager is implemented and parseSimpleArray exhanged from call compile so database is faster. For issues PM me on discord or Exile forums.
28 lines
758 B
Plaintext
28 lines
758 B
Plaintext
/**
|
|
* ExileServer_system_database_query_selectSingle
|
|
*
|
|
* Exile Mod
|
|
* www.exilemod.com
|
|
* © 2015 Exile Mod Team
|
|
*
|
|
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
|
|
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
|
|
*/
|
|
|
|
private["_parameters","_query","_result"];
|
|
_parameters = _this;
|
|
_query = [0, "SQL",_parameters] joinString ":";
|
|
_result = parseSimpleArray ("extDB3" callExtension _query);
|
|
switch (_result select 0) do
|
|
{
|
|
case 0:
|
|
{
|
|
(format["Database Error: %1", (_result select 1)]) call ExileServer_util_log;
|
|
};
|
|
case 2:
|
|
{
|
|
_result = (_result select 1) call ExileServer_system_database_handleBig;
|
|
};
|
|
};
|
|
(_result select 1) select 0
|