Wir haben aktuell das Problem auf unserem Server, dass folgende Fehlermeldung erscheint und wir den Fehler nicht wirklich finden.
Spoiler anzeigen
_return = (_queryResult select 1) select 0;
if(_multiarr) then {
_return =>
21:14:04 Error position: <select 0;
if(_multiarr) then {
_return =>
21:14:04 Error Generic error in expression
21:14:04 File life_server\Functions\MySQL\fn_asyncCall.sqf, line 49
Spoiler anzeigen
/*
File: fn_asyncCall.sqf
Author: Bryan "Tonic" Boardwine
Description:
Commits an asynchronous call to [lexicon]ExtDB[/lexicon]
Parameters:
0: STRING (Query to be ran).
1: INTEGER (1 = ASYNC + not return for update/insert, 2 = ASYNC + return for query's).
3: BOOL (True to return a single array, false to return multiple entries mainly for garage).
*/
waitUntil {!DB_Async_Active};
private["_queryStmt","_queryResult","_key","_mode","_return"];
_queryStmt = [_this,0,"",[""]] call BIS_fnc_param;
_mode = [_this,1,1,[0]] call BIS_fnc_param;
_multiarr = [_this,2,false,[false]] call BIS_fnc_param;
if(_queryStmt == "") exitWith {"_INVALID_SQL_STMT"};
_return = false;
DB_Async_Active = true;
_queryResult = "";
_key = "[lexicon]extDB[/lexicon]" callExtension format["%1:%2:%3",_mode,(call life_sql_id),_queryStmt];
if(_mode == 1) exitWith {DB_Async_Active = false; true};
_key = call compile format["%1",_key]; _key = _key select 1;
waitUntil{sleep (random .03); !DB_Async_ExtraLock};
DB_Async_ExtraLock = true;
while{true} do {
_pipe = "[lexicon]extDB[/lexicon]" callExtension format["5:%1",_key];
if(_pipe == "") exitWith {};
if(_pipe != "[3]") then {
_queryResult = _queryResult + _pipe;
} else {
sleep 0.35;
};
};
DB_Async_ExtraLock = false;
DB_Async_Active = false;
//Get the Array of information blah blah
_queryResult = call compile _queryResult;
//Make everything possible for DB_RAW_V2
_queryResult = (_queryResult select 1);
if(count (_queryResult select 1) == 0) exitWith {[]};
_return = (_queryResult select 1) select 0;
if(_multiarr) then {
_return = (_queryResult select 1);
};
_return;
Die RPT Logs hängen. Wenn ihr braucht sagt Bescheid