• 0
Sign in to follow this  
Followers 0
John

Help with calling one of your functions

Question

Here is my code

_vehicleClass = "Exile_Chopper_Huron_Black";
_uid = "123456789";
_position = [5411,7082,0];
pinCode = "0000";
_vehicleObject = [_vehicleClass, _position, (random 360), true,pinCode] call ExileServer_object_vehicle_createPersistentVehicle;

_vehicleObject setVariable ["ExileOwnerUID", _uid];
_vehicleObject setVariable ["ExileIsLocked",0];
_vehicleObject lock 0;
_vehicleObject call ExileServer_object_vehicle_database_insert;
_vehicleObject call ExileServer_object_vehicle_database_update;

My vehicle spawns correctly in the server, as it should however I receive this error for the DB insert =(

11:44:51 Error in expression <llExtension _query);
(_result select 1) select 0>
11:44:51   Error position: <select 0>
11:44:51   Error Generic error in expression
11:44:51 File exile_server\code\ExileServer_system_database_query_insertSingle.sqf, line 16

Please help, I am so lost. I have tried everything I can think of. From what I can see im not doing anything different than someone would purchasing a vehicle, except for hard coding the "ExileOwnerUID" and pin code..

Many thanks!

Share this post


Link to post
Share on other sites

1 answer to this question

  • 0

The only thing that I can see in your code is that you have probably accidentally defined the PIN code as a global variable. But I don't think this is the problem.

Please have a look at your extDB2 logs in the @ExileServer folder. If there are MySQL query errors like here, you will find the exact error message in there.

2 people like this

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.