Hier mal das enum
enum e_VehicleData
{
vehID,
vehBesitzer[MAX_PLAYER_NAME+1],
modelid,
Float:vehPosX,
Float:vehPosY,
Float:vehPosZ,
Float:vehPosA,
Float:vehPosX2,
Float:vehPosY2,
Float:vehPosZ2,
Float:vehHealth,
vehColor1,
vehColor2,
vehPaintjob,
vehSpoiler,
vehHood,
vehRoof,
vehSideskirt,
vehLamps,
vehNitro,
vehExhaust,
vehWheels,
vehStereo,
vehHydraulics,
vehFrontBumper,
vehRearBumper,
vehVentRight,
vehVentLeft,
vehPreis,
vehNeon1,
vehNeon2,
vehNeonID,
vehNumberPlate[32],
Float:vehFuel,
Float:vehKMStand,
vehInterior,
vehWorld,
vehTankKM,
vehKMStandCount,
bool:vehMotor,
bool:vehLicht,
bool:vehHaube,
bool:vehKRaum,
VehicleTimer,
Text3D:vehText,
vehFraktion,
dbID,
};
new Vehicle[MAX_VEHICLES][e_VehicleData];
new PrivateVehicle[MAX_PLAYERS][MAX_PLAYER_VEHICLES][e_VehicleData];
Hier mal die Tabelle, wie ich Sie erstelle.
DROP TABLE IF EXISTS `script_vehicles`;
CREATE TABLE `script_vehicles` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`vehBesitzer` varchar(25) NOT NULL,
`Slot` int(3) NOT NULL,
`modelid` int(4) NOT NULL,
`vehPosX` float(10,4) NOT NULL,
`vehPosY` float(10,4) NOT NULL,
`vehPosZ` float(10,4) NOT NULL,
`vehPosA` float(10,4) NOT NULL,
`vehHealth` float(10,4) NOT NULL,
`vehColor1` int(4) NOT NULL,
`vehColor2` int(4) NOT NULL,
`vehPaintjob` int(5) NOT NULL,
`vehSpoiler` int(5) NOT NULL,
`vehHood` int(5) NOT NULL,
`vehRoof` int(5) NOT NULL,
`vehSideskirt` int(5) NOT NULL,
`vehLamps` int(5) NOT NULL,
`vehNitro` int(5) NOT NULL,
`vehExhaust` int(5) NOT NULL,
`vehWheels` int(5) NOT NULL,
`vehStereo` int(5) NOT NULL,
`vehHydraulics` int(5) NOT NULL,
`vehFrontBumper` int(5) NOT NULL,
`vehRearBumper` int(5) NOT NULL,
`vehVentRight` int(5) NOT NULL,
`vehVentLeft` int(5) NOT NULL,
`vehPreis` int(10) NOT NULL,
`vehNeonID` int(5) NOT NULL,
`vehNumberPlate` varchar(32) NOT NULL,
`vehFuel` float(10,4) NOT NULL,
`vehKMStand` float(10,4) NOT NULL,
`vehInterior` int(10) NOT NULL,
`vehWorld` int(10) NOT NULL,
`vehLocked` int(2) NOT NULL,
`vehSecondOwner` varchar(25) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
Alles anzeigen