22.01.2014, 12:50
You are doing correct if you want VW to be an integer. :P
I read that you can add so vehWindow is a boolean by "bool:" tag just like with float but I would prefer integer as I might want to change the stances in a vehicle's window to be half-up maybe? Then with a bool I only have true or false to choose from, therefore I always use integers for objects that can have more than two behaviors.
Suggestion: If I were to be connect with your script in the future, I'd like to know what each attribute means without having to look at where you declared them, as in your "Float:F" doesn't really mean that it has to be fuel. Therefore to make the script readable, I suggest you change "F" to like "vehFuel" or "fuel" just to make it easier for people that will read the script and for yourself! Having lots of different attributes may make you confused later on once you have not used the enum for a while. :P Just a tip though.
Код:
enum myEnum { Float:fuel, vehWindow } new myVehEnum[maxVehicles][myEnum];
Suggestion: If I were to be connect with your script in the future, I'd like to know what each attribute means without having to look at where you declared them, as in your "Float:F" doesn't really mean that it has to be fuel. Therefore to make the script readable, I suggest you change "F" to like "vehFuel" or "fuel" just to make it easier for people that will read the script and for yourself! Having lots of different attributes may make you confused later on once you have not used the enum for a while. :P Just a tip though.