Akku

HELP in Del vehicle From DB after spwaning

4 posts in this topic

Hello guys 

i need to del the vehicles from database after i spwan them 

variable passing from client side are player and vehicle 

"fn_spawnVehicle" addPublicVariableEventHandler {
    _packet2= _this select 1;
    _guy2= _packet2 select 0; 
    _car= _packet2 select 1;

_vehicleID = _car getVariable ["ExileDatabaseID", -1];

_car createVehicle position _guy2;

format['deletegarage',_vehicleID] call ExileServer_system_database_query_fireAndForget;

IN INI

i have set 

[deletegarage]
SQL1_1 = DELETE FROM veh FROM garage WHERE id= ?
Number Of Inputs = 1
SQL1_INPUTS = 1

ITS not working please help 

 

Share this post


Link to post
Share on other sites
Advertisement

getting error 

23:49:36 Error in expression <r= _packet2 select 1;
_vehicleID = _car getVariable ["ExileDatabaseID", []];


_>
23:49:36   Error position: <getVariable ["ExileDatabaseID", []];


_>

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.