19.05.2017, 18:56
Quote:
The enum:
Код:
enum CarInfo { pVehicle1, // ... pVehicle2, // ... pVehicle3, // ... } new PlayerCars[MAX_PLAYERS][CarInfo]; |
Create a 3D array instead. You will only have to change one number and you can use loops.
PHP код:
enum CarInfo
{
pVehicle,
pVehicleModel,
Float:pVehicleX,
Float:pVehicleY,
Float:pVehicleZ,
Float:pVehicleC,
pVehicleColor1,
pVehicleColor2,
pVehicleValue,
pVehiclePlate,
pVehicleLock
}
new PlayerCars[MAX_PLAYERS][3][CarInfo];