Hallo Leute,
ich habe zur Zeit wenn man länger auf dem Server spielt bekommt man von der fn_updatePartial.sqf folgenden Fehler im Client Log angezeigt:
Code
18:35:56 Error in expression <e","_packet","_array","_flag"];
_mode = param [0,0,[0]];
_packet = [getPlayerUID>
18:35:56 Error position: <param [0,0,[0]];
_packet = [getPlayerUID>
18:35:56 Error Typ Objekt, erwartet Zahl
18:35:56 File core\session\fn_updatePartial.sqf [SOCK_fnc_updatePartial], line 67
Leider sagt mehr der Fehler gerade nix.
Hier ist noch meine Datei:
Code
#include "..\..\script_macros.hpp"
/*
File: fn_updatePartial.sqf
Author: Bryan "Tonic" Boardwine
Description:
Sends specific information to the server to update on the player,
meant to keep the network traffic down with large sums of data flowing
through remoteExec
*/
private ["_mode","_packet","_array","_flag"];
_mode = param [0,0,[0]];
_packet = [getPlayerUID player,playerSide,nil,_mode];
_array = [];
_flag = switch (playerSide) do {case west: {"cop"}; case civilian: {"civ"}; case independent: {"med"};};
switch (_mode) do {
case 0: {
_packet set[2,CASH];
};
case 1: {
_packet set[2,BANK];
};
case 2: {
{
_varName = LICENSE_VARNAME(configName _x,_flag);
_array pushBack [_varName,LICENSE_VALUE(configName _x,_flag)];
} forEach (format ["getText(_x >> 'side') isEqualTo '%1'",_flag] configClasses (missionConfigFile >> "Licenses"));
_packet set[2,_array];
};
case 3: {
[] call life_fnc_saveGear;
_packet set[2,life_gear];
};
case 4: {
_packet set[2,life_is_alive];
_packet set[4,getPosATL player];
};
case 5: {
_packet set[2,life_is_arrested];
};
case 6: {
_packet set[2,CASH];
_packet set[4,BANK];
};
case 7: {
// Tonic is using for keychain..?
};
case 8: {
_packet set[2,life_bankingpin];
};
};
if (life_HC_isActive) then {
_packet remoteExecCall ["HC_fnc_updatePartial",HC_Life];
} else {
_packet remoteExecCall ["DB_fnc_updatePartial",RSERV];
};
Alles anzeigen