Jump to content
  • 0

Vehicle Garage error


nikas455

Question

Vehicle DB is not saved.
table :

CREATE TABLE `garage` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `PlayerUID` varchar(20) NOT NULL DEFAULT '0',
  `Classname` varchar(50) DEFAULT NULL,
  `Datestamp` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `CharacterID` int(11) unsigned NOT NULL DEFAULT '0',
  `Inventory` mediumtext,
  `Hitpoints` mediumtext,
  `Fuel` double(13,5) NOT NULL DEFAULT '1.00000',
  `Damage` double(13,5) NOT NULL DEFAULT '0.00000',
  `Colour` varchar(50) NOT NULL,
  `Colour2` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=315 DEFAULT CHARSET=latin1;

RPT:

13:27:56 File z\addons\dayz_server\compile\garage\server_queryGarageVehicle.sqf, line 12

server_queryGarageVehicle:

private ["_player","_query","_key","_pipe","_queryResult","_return","_clientID","_objectID","_objectUID","_playerUID"];

_player =		_this select 0;
_clientID = owner _player;
_playerUID = getPlayerUID _player;


_query = format["SELECT id, classname FROM garage WHERE PlayerUID='%1'",_playerUID];

_pipe = "extDB" callExtension format["0:1:%1",_query];
_pipe1 = call compile _pipe;
_return = ((_pipe1 select 1) select 1);


PVDZE_queryGarageVehicleResult = _return;


if(!isNull _player) then {
	_clientID publicVariableClient "PVDZE_queryGarageVehicleResult";
};

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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
  • Advertisement
  • Discord

×
×
  • Create New...