22.01.2014, 14:17
Quote:
|
You are doing correct if you want VW to be an integer. :P
Код:
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. |
How can I do that?
I tried something like this:
pawn Код:
public OnPlayerText(playerid, text[])
{
if(IsPlayerInAnyVehicle(playerid))
{
if(VW[GetPlayerVehicleID(playerid)] == 0) // VW = Vehicle Windows, this veriable will be replaced later..
{
return 1;
}
}
return 1;
}
Thanks for help in advance


