mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 13:26:39 +03:00
Fixed if _hiveResponse is null
13:21:08 "HIVE: trying to get objects" 13:21:08 Error in expression <ray = call compile format ["%1",_data]; _resultArray }; server_hiveReadWriteLar> 13:21:08 Error position: <_resultArray }; server_hiveReadWriteLar> 13:21:08 Error Undefined variable in expression: _resultarray 13:21:08 File z\addons\dayz_server\init\server_functions.sqf, line 172 13:21:08 Error in expression <ction problem... HiveExt response:"+str(_hiveResponse)); _hiveResponse = ["",0];> 13:21:08 Error position: <_hiveResponse)); _hiveResponse = ["",0];> 13:21:08 Error Undefined variable in expression: _hiveresponse 13:21:08 File z\addons\dayz_server\system\server_monitor.sqf, line 38
This commit is contained in:
@@ -34,13 +34,19 @@ if (isServer and isNil "sm_done") then {
|
|||||||
diag_log "HIVE: trying to get objects";
|
diag_log "HIVE: trying to get objects";
|
||||||
_key = format["CHILD:302:%1:", dayZ_instance];
|
_key = format["CHILD:302:%1:", dayZ_instance];
|
||||||
_hiveResponse = _key call server_hiveReadWrite;
|
_hiveResponse = _key call server_hiveReadWrite;
|
||||||
if ((((isnil "_hiveResponse") || {(typeName _hiveResponse != "ARRAY")}) || {((typeName (_hiveResponse select 1)) != "SCALAR")})) then {
|
if (isnil "_hiveResponse") then {
|
||||||
diag_log ("HIVE: connection problem... HiveExt response:"+str(_hiveResponse));
|
diag_log ("HIVE: connection problem... unable to call HiveExt");
|
||||||
_hiveResponse = ["",0];
|
_hiveResponse = ["",0];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
diag_log ("HIVE: found "+str(_hiveResponse select 1)+" objects" );
|
if ({(typeName _hiveResponse != "ARRAY")} || {((typeName (_hiveResponse select 1)) != "SCALAR")}) then {
|
||||||
_i = 99; // break
|
diag_log ("HIVE: connection problem... HiveExt response:"+str(_hiveResponse));
|
||||||
|
_hiveResponse = ["",0];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
diag_log ("HIVE: found "+str(_hiveResponse select 1)+" objects" );
|
||||||
|
_i = 99; // break
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user