Servus Leute.
Ich habe die Verwahrungstelle drauf gemacht auf meinen Server drauf gespielt. Dann hab ich diese entfernt und seitdem geht es nicht mehr ![]()
Leider habe ich keinen Fehler im RPT...
Die Dateien die damit zusammen hängen sind auch richtig..
Spoiler anzeigen
Code
/*
File: fn_storeVehicle.sqf
Author: Bryan "Tonic" Boardwine
Description:
Stores the vehicle in the garage.
*/
private["_nearVehicles","_vehicle"];
if(vehicle player != player) then
{
_vehicle = vehicle player;
}
else
{
_nearVehicles = nearestObjects[getPos (_this select 0),["Car","Air","Ship"],30]; //Fetch vehicles within 30m.
if(count _nearVehicles > 0) then
{
{
if(!isNil "_vehicle") exitWith {}; //Kill the loop.
_vehData = _x getVariable["vehicle_info_owners",[]];
if(count _vehData > 0) then
{
_vehOwner = (_vehData select 0) select 0;
if((getPlayerUID player) == _vehOwner) exitWith
{
_vehicle = _x;
};
};
} foreach _nearVehicles;
};
};
if(isNil "_vehicle") exitWith {hint localize "STR_Garage_NoNPC"};
if(isNull _vehicle) exitWith {};
[[_vehicle,false,(_this select 1)],"TON_fnc_vehicleStore",false,false] spawn RyL_fnc_MP;
hint localize "STR_Garage_Store_Server";
RyL_garage_store = true;
Alles anzeigen
Spoiler anzeigen
Code
/*
File: fn_insertVehicle.sqf
Author: Bryan "Tonic" Boardwine
Description:
Inserts the vehicle into the database
*/
private["_uid","_side","_type","_className","_color","_plate","_query","_sql"];
_uid = [_this,0,"",[""]] call BIS_fnc_param;
_side = [_this,1,"",[""]] call BIS_fnc_param;
_type = [_this,2,"",[""]] call BIS_fnc_param;
_className = [_this,3,"",[""]] call BIS_fnc_param;
_color = [_this,4,-1,[0]] call BIS_fnc_param;
_plate = [_this,5,-1,[0]] call BIS_fnc_param;
//Stop bad data being passed.
if(_uid == "" OR _side == "" OR _type == "" OR _className == "" OR _color == -1 OR _plate == -1) exitWith {};
_query = format["INSERT INTO vehicles (side, classname, type, pid, alive, active, inventory, color, plate) VALUES ('%1', '%2', '%3', '%4', '1','1','""[]""', '%5', '%6')",_side,_className,_type,_uid,_color,_plate];
waitUntil {sleep (random 0.3); !DB_Async_Active};
[_query,1] call DB_fnc_asyncCall;
Alles anzeigen
ich hoffe ihr könnt mir helfen
hail