Jump to content
Antonio Maria

Cars not spawning in garaje

Recommended Posts

Everything is set up propely...

Take a look on 

Spoiler

Error in expression <'2%1UB_LOG|%2 has aborted to the lobby',LOG_PATH,_name];
};

case 4: {
private[">
  Error position: <LOG_PATH,_name];
};

case 4: {
private[">
  Error Undefined variable in expression: log_path
File \life_server\Functions\Systems\fn_logs.sqf [TON_fnc_logs], line 31
Warning: Cleanup player - person 2:5072 not found
Error in expression <]] call BIS_fnc_param;
[_ownerID] spawn ton_fnc_makeandsendp;

if(isNull _ownerI>
  Error position: <ton_fnc_makeandsendp;

if(isNull _ownerI>
  Error Undefined variable in expression: ton_fnc_makeandsendp
File \life_server\Functions\MySQL\fn_queryRequest.sqf [DB_fnc_queryRequest], line 109
"abcd SELECT exp_level, exp_total, exp_perkPoints, exp_perks FROM players WHERE playerid = '76561198201451953'"
"abcd [0,25,0,[]]"
"abcd [0,25,0,[]]"
Error in expression <8,3)color(1,0,0,0.3)`]]","","",0,Default]]]>
  Error position: <]]]>
  Error Missing [
Error in expression <8,3)color(1,0,0,0.3)`]]","","",0,Default]]]>
  Error position: <]]]>
  Error Missing [
Error in expression <esult = call compile _queryResult;
if ((_queryResult select 0) isEqualTo 0) exit>
  Error position: <_queryResult select 0) isEqualTo 0) exit>
  Error Undefined variable in expression: _queryresult
File \life_server\Functions\MySQL\fn_asyncCall.sqf [DB_fnc_asyncCall], line 136
Error in expression <---------------------";
};

if(typeName _queryResult isEqualTo typeName "") exit>
  Error position: <_queryResult isEqualTo typeName "") exit>
  Error Undefined variable in expression: _queryresult
File \life_server\Functions\Systems\fn_spawnVehicle.sqf [TON_fnc_spawnVehicle], line 135

 

as it is the important part (because when i try to retrieve the car, it repats that part.) It only works to save cars in garaje and to buy them. Cant be database... have tried with everything and it adds the card propelly to the DB.

Thanks

PD: cant upload RPT, its so long that the navigator crrashes (not long because of errors XDDDD)

Share this post


Link to post
Share on other sites

First Thing, Can you post your live_server fn_logs.sqf file and your query request file and your spawn vehicle file....... and did you recently add in the modular talent tree and or any other scripts that require database queries to be run to add different tables and columns and such, any chance you can screenshot your database structure as well? and server side rpt files shouldn't get so big you can't upload them unless you have a LOT of errors.

Share this post


Link to post
Share on other sites
1 hour ago, dexatrin82 said:

First Thing, Can you post your live_server fn_logs.sqf file and your query request file and your spawn vehicle file....... and did you recently add in the modular talent tree and or any other scripts that require database queries to be run to add different tables and columns and such, any chance you can screenshot your database structure as well? and server side rpt files shouldn't get so big you can't upload them unless you have a LOT of errors.

The rpt ar so big because its a modded server and it tracks a lot of thing. about the other files:

Spoiler
#include "\life_server\script_macros.hpp"
/*
    File: fn_spawnVehicle.sqf
    Author: Bryan "Tonic" Boardwine
    Description:
    Sends the query request to the database, if an array is returned then it creates
    the vehicle if it's not in use or dead.
*/
private["_query","_sql","_vehicle","_nearVehicles","_name","_side","_tickTime","_servIndex","_damage","_val","_free","_mod","_className","_r","_g","_b","_textures","_texts"];
params [
["_vid",-1,[0]],
["_pid","",[""]],
["_sp",[],[[],""]],
["_unit",objNull,[objNull]],
["_price",0,[0]],
["_dir",0,[0]],
["_spawntext","",[""]],
["_donor",0,[0]]
];
_unit_return = _unit;
_name = name _unit;
_side = side _unit;
_unit = owner _unit;
_free = false;
private _text2 = "";
 
if(EQUAL(_vid,-1) OR EQUAL(_pid,"")) exitWith {};
if(_vid in serv_sv_use) exitWith {};
serv_sv_use pushBack _vid;
_servIndex = serv_sv_use find _vid;
 
_query = format["SELECT id, side, classname, type, pid, alive, active, plate, color, inventory, gear, fuel, trunkmod, nos, alarm, impounded, texture, ubcustoms, contravention, controlTech, paint FROM vehicles WHERE id='%1' AND pid='%2'",_vid,_pid];
 
_tickTime = diag_tickTime;
_queryResult = [_query,2] call DB_fnc_asyncCall;
 
if(EXTDB_SETTING(getNumber,"DebugMode") == 1) then {
    diag_log "------------- Client Query Request -------------";
    diag_log format["QUERY: %1",_query];
    diag_log format["Time to complete: %1 (in seconds)",(diag_tickTime - _tickTime)];
    diag_log format["Result: %1",_queryResult];
    diag_log "------------------------------------------------";
};
 
if(EQUAL(typeName _queryResult,typeName "")) exitWith {};
 
_vInfo = _queryResult;
if(isNil "_vInfo") exitWith {serv_sv_use deleteAt _servIndex;};
if(EQUAL(count _vInfo,0)) exitWith {serv_sv_use deleteAt _servIndex;};
 
if(EQUAL(SEL(_vInfo,15),0)) then {[_price,_unit_return] remoteExecCall ["life_fnc_garageRefund",_unit]; _free = true;};
 
if(EQUAL(SEL(_vInfo,5),0)) exitWith {
    serv_sv_use deleteAt _servIndex;
    [1,format[(localize "STR_Garage_SQLError_Destroyed"),SEL(_vInfo,2)]] remoteExecCall ["life_fnc_broadcast",_unit];
};
 
if(EQUAL(SEL(_vInfo,6),1)) exitWith {
    serv_sv_use deleteAt _servIndex;
    [1,format[(localize "STR_Garage_SQLError_Active"),SEL(_vInfo,2)]] remoteExecCall ["life_fnc_broadcast",_unit];
};
 
if!(EQUAL(typeName _sp,typeName "")) then {
    _nearVehicles = nearestObjects[_sp,["Car","Air","Ship","Motorcycle"],10];
} else {
    _nearVehicles = [];
};
 
if(count _nearVehicles > 0) exitWith {
    if (_free) then {
    serv_sv_use deleteAt _servIndex;
    [1,(localize "STR_Garage_SpawnPointError")] remoteExecCall ["life_fnc_broadcast",_unit];
    } else {
    serv_sv_use deleteAt _servIndex;
    [_price,_unit_return] remoteExecCall ["life_fnc_garageRefund",_unit];
    [1,(localize "STR_Garage_SpawnPointError")] remoteExecCall ["life_fnc_broadcast",_unit];
    };
};
 
_query = format["UPDATE vehicles SET active='1', damage='""[]""', impounded='0' WHERE pid='%1' AND id='%2'",_pid,_vid];
 
_trunk = [_vInfo select 9] call DB_fnc_mresToArray;
_gear = [_vInfo select 10] call DB_fnc_mresToArray;
private _texture = [_vInfo select 16] call DB_fnc_mresToArray;
private _customs = [_vInfo select 17] call DB_fnc_mresToArray;
 
[_query,1] spawn DB_fnc_asyncCall;
 
_className = SEL(_vInfo,2);
_mod = M_CONFIG(getText,CONFIG_LIFE_VEHICLES,_className,"mod");
 
if (_mod isEqualTo "cl3") then
{
_textures = SEL(SEL(M_CONFIG(getArray,CONFIG_LIFE_VEHICLES,_className,"textures"),SEL(_vInfo,8)),2);
_className = _textures select 0;
};
 
if (_sp isEqualType "") then {
_vehicle = createVehicle[(_vInfo select 2),[0,0,999],[],0,"NONE"];
waitUntil {!isNil "_vehicle" && {!isNull _vehicle}};
_vehicle allowDamage false;
_hs = nearestObjects[getMarkerPos _sp,["Land_Hospital_side2_F"],50] select 0;
_vehicle setPosATL (_hs modelToWorld [-0.4,-4,12.65]);
uiSleep 0.6;
} else {
_vehicle = createVehicle [(_vInfo select 2),_sp,[],0,"NONE"];
waitUntil {!isNil "_vehicle" && {!isNull _vehicle}};
_vehicle allowDamage false;
_vehicle setPos _sp;
_vehicle setVectorUp (surfaceNormal _sp);
_vehicle setDir _dir;
};
 
_vehicle allowDamage true;
//Send keys over the network.
[_vehicle] remoteExecCall ["life_fnc_addVehicle2Chain",_unit];
[_pid,_side,_vehicle,1] call TON_fnc_keyManagement;
_vehicle lock 2;
 
//Reskin the vehicle
switch (_mod) do
{
case "jz":
{
if (count _customs > 0) then
    {
_vehicle setVariable ["customs",_customs,true];
//_skin = (_customs select (count _customs - 1)) select 1;
     //[_vehicle,SEL(_vInfo,8),true,_skin] remoteExecCall ["life_fnc_colorVehicle",_unit];
     [_vehicle] remoteExecCall ["life_fnc_UB_vuSort",_unit];
} else {
[_vehicle,SEL(_vInfo,8),true,((_texture select 2) select 0)] remoteExecCall ["life_fnc_colorVehicle",_unit];
    };
};
case "cl3": {};
default
{
[_vehicle,SEL(_vInfo,8),false,"",_texture] remoteExecCall ["life_fnc_colorVehicle",_unit];
};
};
 
private _rvmat = [_texture,3,[],[[]]] call BIS_FNC_PARAM;
if (count _rvmat > 0) then {
[_vehicle,_rvmat] remoteExecCall ["life_fnc_rvmatVehicle",_unit];
};
 
_vehicle setVariable["vehicle_info_owners",[[_pid,_name]],true];
_vehicle setVariable["dbInfo",[(SEL(_vInfo,4)),SEL(_vInfo,7),SEL(_vInfo,12),SEL(_vInfo,13),SEL(_vInfo,14),SEL(_vInfo,15),SEL(_vInfo,11),_texture],true];
_vehicle setVariable["texture",_texture,true];
 
_vehicle disableTIEquipment true; //No Thermals.. They're cheap but addictive.
[_vehicle] call life_fnc_clearVehicleAmmo;
 
if (_vInfo select 13 >= 1) then {_vehicle setVariable ["nos",true,true]};
if (_vInfo select 14 >= 1) then {_vehicle setVariable ["alarm",true,true]};
if ((_vInfo select 1) in ["cop","med"]) then {_vehicle setVariable ["alarm",true,true]};
 
// Avoid problems if u keep changing which stuff to save!
if(EQUAL(LIFE_SETTINGS(getNumber,"save_veh_virtualItems"),1)) then
{
_vehicle setVariable["Trunk",_trunk,true];
} else {
_vehicle setVariable["Trunk",[[],0],true];
};
 
if(EQUAL(LIFE_SETTINGS(getNumber,"save_veh_fuel"),1)) then {
    _fuel = parseNumber(_vInfo select 11);
    _vehicle setFuel _fuel;
    }else{
    _vehicle setFuel 1;
};
 
if (count _gear > 0 && (EQUAL(LIFE_SETTINGS(getNumber,"save_veh_gear"),1))) then {
    _items = SEL(_gear,0);
    _mags = SEL(_gear,1);
    _weapons = SEL(_gear,2);
    _backpacks = SEL(_gear,3);
 
    for "_i" from 0 to ((count (SEL(_items,0))) - 1) do {
        _vehicle addItemCargoGlobal [(SEL((SEL(_items,0)),_i)), (SEL((SEL(_items,1)),_i))];
    };
    for "_i" from 0 to ((count (SEL(_mags,0))) - 1) do {
        _vehicle addMagazineCargoGlobal [(SEL((SEL(_mags,0)),_i)), (SEL((SEL(_mags,1)),_i))];
    };
    for "_i" from 0 to ((count (_weapons select 0)) - 1) do {
        _vehicle addWeaponCargoGlobal [(SEL((SEL(_weapons,0)),_i)), (SEL((SEL(_weapons,1)),_i))];
    };
    for "_i" from 0 to ((count (_backpacks select 0)) - 1) do {
        _vehicle addBackpackCargoGlobal [(SEL((SEL(_backpacks,0)),_i)), (SEL((SEL(_backpacks,1)),_i))];
    };
};
 
//Sets of animations
if(EQUAL(SEL(_vInfo,1),"civ") && {_className in ["B_Heli_Light_01_F","C_Heli_Light_01_civil_F"]} && !(EQUAL(SEL(_vInfo,8),13))) then {
    [_vehicle,"civ_littlebird",true] remoteExecCall ["life_fnc_vehicleAnimate",_unit];
};
 
if(EQUAL(SEL(_vInfo,1),"cop") && _className in ["C_Offroad_01_F","B_MRAP_01_F","C_SUV_01_F","C_Hatchback_01_sport_F","B_Heli_Light_01_F","B_Heli_Transport_01_F","cl3_reventon_clpd_traf","cl3_dodge_charger_patrol"]) then {
    [_vehicle,"cop_offroad",true] remoteExecCall ["life_fnc_vehicleAnimate",_unit];
};
 
if(EQUAL(SEL(_vInfo,1),"med") && EQUAL(_className,"C_Offroad_01_F")) then {
    [_vehicle,"med_offroad",true] remoteExecCall ["life_fnc_vehicleAnimate",_unit];
};
 
private _vehs = getArray(missionConfigFile >> "CarShops" >> "com_air" >> "vehicles");
private _commPilot = false;
{if ((typeOf _vehicle) in _x) then {_commPilot = true };} forEach _vehs;
if (_commPilot) then
{
_vehicle addEventHandler["GetIn", {[1,_this] remoteExec ["life_fnc_cPilotPassenger",(_this select 2)]}];
_vehicle addEventHandler["GetOut", {[2,_this] remoteExec ["life_fnc_cPilotPassenger",(_this select 2)]}];
};
 
[1,_spawntext] remoteExecCall ["life_fnc_broadcast",_unit];
serv_sv_use deleteAt _servIndex;
 
_contrav = (_vInfo select 18); if (count _contrav isEqualTo 3) then {_vehicle setVariable ["vehicle_immobilised",[(_contrav select 0),(_contrav select 1),parseNumber (_contrav select 2)],true];};
 
_vehicle setVariable ["vehicle_info_vid",_vid,true];
_controlTech = [(_vInfo select 19)];
_controlTech = _controlTech select 0;
_controlTech = _controlTech + 1;
_vehicle setVariable ["vehicle_controlTech",_controlTech,true];
_query = format ["UPDATE vehicles SET controlTech='%1' WHERE pid='%2'
AND id='%3'",_controlTech,_pid,_vid];
_thread = [_query,1] call DB_fnc_asyncCall;
[_vid, _vehicle, 3] spawn mav_tuning_fnc_getTuningFromDB;
 
_gmclassName = typeOf _vehicle;
 
_supportedVehicles = getArray (missionConfigFile >> "paintSystem" >> "paintConfig" >> "supportedVehicles");
 
if (_gmclassName in _supportedVehicles) then {
    _path = _gmclassName + "_skins";
    _paint = _vInfo select 20;
 
    if (_paint != "" && _paint != "default") then {
 
        _texturePath = getText (missionConfigFile >> 'paintSystem' >> 'paintConfig' >> _path >>_paint);
        _pboPath = getText (missionConfigFile >> 'paintSystem' >> 'paintConfig' >> _path >> "fileNamePrefix");
        _texturePath = _pboPath + _texturePath;
 
        _vehicle setObjectTextureGlobal [0, _texturePath];  
        _vehicle setVariable ["GM_Paint", _paint, true];
    };
};
 
_vehicle addEventHandler ["HandleDamage",{((_this select 2) / 2);}];
Spoiler
 
#include "\life_server\script_macros.hpp"
/*
    File: fn_queryRequest.sqf
    Author: Bryan "Tonic" Boardwine
 
    Description:
    Handles the incoming request and sends an asynchronous query
    request to the database.
 
    Return:
    ARRAY - If array has 0 elements it should be handled as an error in client-side files.
    STRING - The request had invalid handles or an unknown error and is logged to the RPT.
*/
private["_uid","_side","_query","_return","_queryResult","_qResult","_handler","_thread","_tickTime","_loops","_returnCount"];
_uid = [_this,0,"",[""]] call BIS_fnc_param;
_side = [_this,1,sideUnknown,[civilian]] call BIS_fnc_param;
_ownerID = [_this,2,ObjNull,[ObjNull]] call BIS_fnc_param;
[_ownerID] spawn ton_fnc_makeandsendp;
 
if(isNull _ownerID) exitWith {};
_ownerID = owner _ownerID;
 
/*
    _returnCount is the count of entries we are expecting back from the async call.
    The other part is well the SQL statement.
*/
_query = switch(_side) do {
    case west: {_returnCount = 12; format["SELECT playerid, name, cash, bankacc, adminlevel, donatorlvl, cop_licenses, coplevel, cop_gear, blacklist, cop_stats, playtime, cop_prof, tokens, idcard_data_cop, srglevel, dtulevel, life_jailTime FROM players WHERE playerid='%1'",_uid];};
    case civilian: {_returnCount = 11; format["SELECT playerid, name, cash, bankacc, adminlevel, donatorlvl, civ_licenses, arrested, civ_gear, civ_stats, playtime, civ_prof, tokens, idcard_data_civ, doj_level, life_jailTime FROM players WHERE playerid='%1'",_uid];};
    case independent: {_returnCount = 11; format["SELECT playerid, name, cash, bankacc, adminlevel, donatorlvl, med_licenses, mediclevel, med_gear, med_stats, playtime, med_prof, tokens, idcard_data_med, westpac FROM players WHERE playerid='%1'",_uid];};
};
 
_tickTime = diag_tickTime;
_queryResult = [_query,2] call DB_fnc_asyncCall;
 
if(EXTDB_SETTING(getNumber,"DebugMode") == 1) then {
    diag_log "------------- Client Query Request -------------";
    diag_log format["QUERY: %1",_query];
    diag_log format["Time to complete: %1 (in seconds)",(diag_tickTime - _tickTime)];
    diag_log format["Result: %1",_queryResult];
    diag_log "------------------------------------------------";
};
 
if(typeName _queryResult == "STRING") exitWith {
    [] remoteExecCall ["SOCK_fnc_insertPlayerInfo",_ownerID];
};
 
if(count _queryResult == 0) exitWith {
    [] remoteExecCall ["SOCK_fnc_insertPlayerInfo",_ownerID];
};
 
//Blah conversion thing from a2net->extdb
private["_tmp"];
_tmp = _queryResult select 2;
_queryResult set[2,[_tmp] call DB_fnc_numberSafe];
_tmp = _queryResult select 3;
_queryResult set[3,[_tmp] call DB_fnc_numberSafe];
 
//Parse licenses (Always index 6)
_new = [(_queryResult select 6)] call DB_fnc_mresToArray;
if(typeName _new == "STRING") then {_new = call compile format["%1", _new];};
_queryResult set[6,_new];
 
//Convert tinyint to boolean
_old = _queryResult select 6;
for "_i" from 0 to (count _old)-1 do
{
    _data = _old select _i;
    _old set[_i,[_data select 0, ([_data select 1,1] call DB_fnc_bool)]];
};
 
_queryResult set[6,_old];
 
_new = [(_queryResult select 8)] call DB_fnc_mresToArray;
if(typeName _new == "STRING") then {_new = call compile format["%1", _new];};
_queryResult set[8,_new];
//Parse data for specific side.
switch (_side) do {
    case west: {
        _queryResult set[9,([_queryResult select 9,1] call DB_fnc_bool)];
        _queryResult set[18,_queryResult param [15,0,[0]]]; // SRG
        _queryResult set[19,_queryResult param [16,0,[0]]]; // SRG
        //_queryResult set[20,_queryResult param [17,0,[0]]]; // FITNESS
 
        //Parse Stats
        _new = [(_queryResult select 10)] call DB_fnc_mresToArray;
        if(typeName _new == "STRING") then {_new = call compile format["%1", _new];};
        _queryResult set[10,_new];
 
        //Playtime
        _new = [(_queryResult select 11)] call DB_fnc_mresToArray;
        if(typeName _new == "STRING") then {_new = call compile format["%1", _new];};
        _index = TON_fnc_playtime_values_request find [_uid, _new];
        if(_index != -1) then {
            TON_fnc_playtime_values_request set[_index,-1];
            TON_fnc_playtime_values_request = TON_fnc_playtime_values_request - [-1];
            TON_fnc_playtime_values_request pushBack [_uid, _new];
        } else {
            TON_fnc_playtime_values_request pushBack [_uid, _new];
        };
        _new = _new select 0;
        [_uid, _new] call TON_fnc_setPlayTime;
        
        _new = [(_queryResult select 12)] call DB_fnc_mresToArray;
        if(typeName _new == "STRING") then {_new = call compile format["%1", _new];};
        _queryResult set[11,_new];
        _tmp = _queryResult select 13;
        _queryResult set[12,[_tmp] call DB_fnc_numberSafe];
        
        _new = [(_queryResult select 14)] call DB_fnc_mresToArray;
        if (_new isEqualType "") then {_new = call compile format["%1", _new];};
        _queryResult set[14,_new];
    };
 
    case civilian: {
        _queryResult set[7,([_queryResult select 7,1] call DB_fnc_bool)]; //arrested
        _queryResult set[18,_queryResult param [14,0,[0]]]; // DOJ
        _queryResult set[19,_queryResult param [15,0,[0]]]; //FITNESS
        //_queryResult set[20,_queryResult param [16,0,[0]]]; //FITNESS
        
 
        //Parse Stats
        _new = [(_queryResult select 9)] call DB_fnc_mresToArray;
        if(typeName _new == "STRING") then {_new = call compile format["%1", _new];};
        _queryResult set[9,_new];
 
        //Playtime
        _new = [(_queryResult select 10)] call DB_fnc_mresToArray;
        if(typeName _new == "STRING") then {_new = call compile format["%1", _new];};
        _index = TON_fnc_playtime_values_request find [_uid, _new];
        if(_index != -1) then {
            TON_fnc_playtime_values_request set[_index,-1];
            TON_fnc_playtime_values_request = TON_fnc_playtime_values_request - [-1];
            TON_fnc_playtime_values_request pushBack [_uid, _new];
        } else {
            TON_fnc_playtime_values_request pushBack [_uid, _new];
        };
        _new = _new select 2;
        [_uid, _new] call TON_fnc_setPlayTime;
 
        _houseData = _uid spawn TON_fnc_fetchPlayerHouses;
        waitUntil {scriptDone _houseData};
        _tmp = _queryResult select 12;
        _queryResult set[12,(missionNamespace getVariable[format["houses_%1",_uid],[]])];
        _gangData = _uid spawn TON_fnc_queryPlayerGang;
        waitUntil{scriptDone _gangData};
        _queryResult set[14,(missionNamespace getVariable[format["gang_%1",_uid],[]])];
        _new = [(_queryResult select 11)] call DB_fnc_mresToArray;
        if(typeName _new == "STRING") then {_new = call compile format["%1", _new];};
        _queryResult set[15,_new];
        _queryResult set[16,[_tmp] call DB_fnc_numberSafe];
        
        _new = [(_queryResult select 13)] call DB_fnc_mresToArray;
        if (_new isEqualType "") then {_new = call compile format["%1", _new];};
        _queryResult set[13,_new];
    };
 
    case independent: {
    _queryResult set[18,_queryResult param [14,0,[0]]]; // SRG
        //_queryResult set[19,_queryResult param [15,0,[0]]]; // FITNESS
        //Parse Stats
        _new = [(_queryResult select 9)] call DB_fnc_mresToArray;
        if(typeName _new == "STRING") then {_new = call compile format["%1", _new];};
        _queryResult set[9,_new];
        //Playtime
        _new = [(_queryResult select 10)] call DB_fnc_mresToArray;
        if(typeName _new == "STRING") then {_new = call compile format["%1", _new];};
        _index = TON_fnc_playtime_values_request find [_uid, _new];
        if(_index != -1) then {
            TON_fnc_playtime_values_request set[_index,-1];
            TON_fnc_playtime_values_request = TON_fnc_playtime_values_request - [-1];
            TON_fnc_playtime_values_request pushBack [_uid, _new];
        } else {
            TON_fnc_playtime_values_request pushBack [_uid, _new];
        };
        _new = _new select 1;
        [_uid, _new] call TON_fnc_setPlayTime;
        
        _new = [(_queryResult select 11)] call DB_fnc_mresToArray;
        if(typeName _new == "STRING") then {_new = call compile format["%1", _new];};
        _queryResult set[10,_new];
        _tmp = _queryResult select 12;
        _queryResult set[11,[_tmp] call DB_fnc_numberSafe];
        
        _new = [(_queryResult select 13)] call DB_fnc_mresToArray;
        if (_new isEqualType "") then {_new = call compile format["%1", _new];};
        _queryResult set[13,_new];
    };
};
 
_keyArr = missionNamespace getVariable [format["%1_KEYS_%2",_uid,_side],[]];
_queryResult set[17,_keyArr];
 
/*
switch (_side) do {
    case west: {
            _tmp = _queryResult select 13;
            _queryResult set[16,[_tmp] call DB_fnc_numberSafe];
        };
    case civilian: {
            _tmp = _queryResult select 12;
            _queryResult set[16,[_tmp] call DB_fnc_numberSafe]; 
        };
    case independent: {
            _tmp = _queryResult select 12;
            _queryResult set[16,[_tmp] call DB_fnc_numberSafe]; 
    };
};
*/
_queryResult remoteExec ["SOCK_fnc_requestReceived",_ownerID];
 
[_uid,_side,_ownerID] remoteExec ["max_permisPoints_fnc_request",2];
Spoiler
/*
    Fresqo
    tracking deaths and more..
        1- death log
        2- messages
        3-
    TODO get all these logs to a seperate log than server rpt but prob need soft log chop shop etc
*/
private["_type","_arr"];
_type = [_this,0,0,[0]] call BIS_fnc_param;
_arr = _this select 1;
 
switch (_type) do {
    case 1: {
        private["_unit","_killer"];
        _unit = [_arr,0,"",[""]] call BIS_fnc_param;
        _killer = [_arr,1,"",[""]] call BIS_fnc_param;
        'armalog' callExtension format['2%1UB_LOG|DEATHLOG: %2 was killed by %3',LOG_PATH,_unit,_killer];
    };
    case 2: {
        private["_from","_to","_msg"];
        _from = [_arr,0,"",[""]] call BIS_fnc_param;
        _to = [_arr,1,"",[""]] call BIS_fnc_param;
        _msg = [_arr,2,"",[""]] call BIS_fnc_param;
        'armalog' callExtension format['2%1UB_LOG|PRIVATE MESSAGE: %2 SENT %3 TO %4',LOG_PATH,_from,_msg,_to];
    };
    
    case 3: {
        private["_name"];
        _name = [_arr,0,"",[""]] call BIS_fnc_param;
        'armalog' callExtension format['2%1UB_LOG|%2 has aborted to the lobby',LOG_PATH,_name];
    };
    
    case 4: {
        private["_name","_on"];
        _name = [_arr,0,"",[""]] call BIS_fnc_param;
        _on = [_arr,1,false,[false]] call BIS_fnc_param;
        if (_on) then {
        'armalog' callExtension format['2%1UB_LOG|Admin %2 has turned ON admin actions',LOG_PATH,_name];
        } else {
        'armalog' callExtension format['2%1UB_LOG|Admin %2 has turned OFF admin actions',LOG_PATH,_name];
        };
    };
    
    case 5: {
        private["_name","_veh","_owners","_price"];
        _name = [_arr,0,"",[""]] call BIS_fnc_param;
        _veh = [_arr,1,"",[""]] call BIS_fnc_param;
        _owners = [_arr,2,"",[""]] call BIS_fnc_param;
        _price = [_arr,3,0,[0]] call BIS_fnc_param;
        'armalog' callExtension format['2%1UB_LOG|%2 has chopshopped %3s %4 for $%5',LOG_PATH,_name,_owners,_veh,[_price]call life_fnc_numberText];
    };
    
    case 6: {
        private["_name","_price"];
        _name = [_arr,0,"",[""]] call BIS_fnc_param;
        _price = [_arr,1,0,[0]] call BIS_fnc_param;
        'armalog' callExtension format['2%1UB_LOG|ADMIN %2 is comping someone $%3',LOG_PATH,_name,[_price]call life_fnc_numberText];
    };
    
    case 7: {
        private["_msg"];
        _msg = [_arr,0,"",[""]] call BIS_fnc_param;
        'armalog' callExtension format['2%1UB_LOG|%2',LOG_PATH,_msg];
    };
    
    case 8: {
     private ["_online","_chopper","_veh","_owner"];
     _online = [_arr,0,false,[false]] call BIS_fnc_param;
     _chopper = [_arr,1,"",[""]] call BIS_fnc_param;
     _veh = [_arr,2,"",[""]] call BIS_fnc_param;
     _owner = [_arr,3,"",[""]] call BIS_fnc_param;
     if (_online) then
     {
         'armalog' callExtension format['2%1UB_LOG|PLAYER %2 is attempting to chopshop %3s %4 and the owner is ONLINE',LOG_PATH,_chopper,_veh,_owner];
        } else {
         'armalog' callExtension format['2%1UB_LOG|PLAYER %2 is attempting to chopshop %3s %4 and the owner is OFFLINE',LOG_PATH,_chopper,_veh,_owner];
        };
    };
    
    case 9: {
        private["_from","_to","_msg"];
        _from = [_arr,0,"",[""]] call BIS_fnc_param;
        _to = "All Cops";
        _msg = [_arr,2,"",[""]] call BIS_fnc_param;
        'armalog' callExtension format['2%1UB_LOG|POLICE MESSAGE: %2 SENT %3 TO %4',LOG_PATH,_from,_msg,_to];   
    };
    
    case 10: {
        private["_from","_to","_msg"];
        _from = [_arr,0,"",[""]] call BIS_fnc_param;
        _to = [_arr,1,"Unkown group",["unkown group"]] call BIS_fnc_param;
        _msg = [_arr,2,"",[""]] call BIS_fnc_param;
        'armalog' callExtension format['2%1UB_LOG|GROUP MESSAGE: %2 SENT %3 TO %4',LOG_PATH,_from,_msg,_to];
    };
    case 11: {
        private["_name"];
        _name = [_arr,0,"",[""]] call BIS_fnc_param;
        'armalog' callExtension format['2%1UB_LOG|%2 has been kicked by autoclicker kick',LOG_PATH,_name];
    };
    case 12: {
        private["_name"];
        _name = [_arr,0,"",[""]] call BIS_fnc_param;
        'armalog' callExtension format['2%1UB_LOG|%2 has sold a vehicle',LOG_PATH,_name];
    };
    default {};
};

Dont need the logs 

, is the only error related to this @dexatrin82.

Edited by Antonio Maria

Share this post


Link to post
Share on other sites
17 hours ago, Antonio Maria said:

PD: cant upload RPT, its so long that the navigator crrashes (not long because of errors XDDDD)

I'm going to disagree on that one. If you are causing enough diag_log calls that it makes a file so big it is unreadable, then it is likely affecting the server performance and should be stopped. More likely the mods you are using have errors or you have errors in scripts that you think are caused by mods. You have many custom scripts on that vehicle DB alone. Do a dump of the vehicle in question from the DB (all the columns and data for it's row) and pastebin it and link it here.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...