07.06.2017, 16:07
Why would you do that? Bad design and it is causing you problems already!
You should have something like
This will limit the need for multiple enums, iterators, variables.
You should have something like
Код:
#define VEHICLE_TYPE_STANDARD 0 #define VEHICLE_TYPE_COP 1 enum VEHICLEINFO { gVehicleType, ... ... } gVehicleData[MAX_VEHICLES][VEHICLEINFO]; foreach(new i : Vehicles) if(gVehicleData[i][gVehicleType] == VEHICLE_TYPE_COP) {}