je perd tout ce qui est vêtement sac a dos et en gros tout le gear,
ceci est mon updateRequest :
Code:
Error in expression <le")],false]];
} forEach (configClasses (missionConfigFile >> "Licenses") select>
Error position: <(missionConfigFile >> "Licenses") select>
Error Missing )
File mpmissions\Altis_Life.Altis\core\session\fn_updateRequest.sqf..., line 34
Error in expression <le")],false]];
} forEach (configClasses (missionConfigFile >> "Licenses") select>
Error position: <(missionConfigFile >> "Licenses") select>
Error Missing )
File mpmissions\Altis_Life.Altis\core\session\fn_updateRequest.sqf..., line 34
ceci est mon updateRequest :
Code:
#include "..\..\script_macros.hpp"
/*
File: fn_updateRequest.sqf
Author: Tonic
Description:
Passes ALL player information to the server to save player data to the database.
*/
private ["_packet", "_array", "_flag", "_alive", "_position"];
_packet = [
getPlayerUID player,
profileName,
playerSide,
CASH, // Assuming CASH is a predefined variable
BANK // Assuming BANK is a predefined variable
];
_array = [];
_alive = alive player;
_position = getPosATL player;
_flag = switch (playerSide) do {
case west: {"cop"};
case civilian: {"civ"};
case independent: {"med"};
};
{
_varName = LICENSE_VARNAME(configName _x, _flag);
_array pushBack [_varName, LICENSE_VALUE(configName _x, _flag)];
} forEach (configClasses (missionConfigFile >> "Licenses") select {getText(_x >> 'side') isEqualTo _flag});
_packet pushBack _array;
[] call life_fnc_saveGear;
_packet pushBack life_gear;
_array = [];
_array pushBack life_hunger;
_array pushBack life_thirst;
_array pushBack (damage player);
_packet pushBack _array;
switch (playerSide) do {
case civilian: {
_packet pushBack life_is_arrested;
_packet pushBack _alive;
_packet pushBack _position;
};
};
if (life_HC_isActive) then {
_packet remoteExecCall ["HC_fnc_updateRequest", HC_Life];
} else {
_packet remoteExecCall ["DB_fnc_updateRequest", RSERV];
};
Dernière édition par un modérateur: