27.12.2016, 19:13
Thank you, it works now.
I don't know, but they are not both accessed with vehicleid.
This is what DynamicVehicleInfo looks like:
Quote:
Btw why do you split the vehicles into two arrays? You could keep them in one and just make some "ownable".
Since you access both with vehicleid, it should work fine. That would probably simplify things like this a bit. But I don't know if you have any reason for splitting them, so this is just an idea. |
This is what DynamicVehicleInfo looks like:
Код:
enum dynamicVehicleInfo { VehicleID, VehicleExists, VehicleRealID, VehicleModel, VehicleFuel, Float:VehiclePos[4], Float:VehicleHealth, VehicleDamages[4], VehicleWindowBroken, VehicleOwner, VehiclePlate[8], VehicleLocked, VehicleColor1, VehicleColor2, VehiclePaintjob, VehicleMods[14] } new DynamicVehicleInfo[MAX_DYNAMIC_VEHICLES][dynamicVehicleInfo];