16.01.2014, 15:27
You cannot compare like that. You would've to check if the carid is N everytime BUT.. switch is faster:
Make sure that when you use that function, you use GetVehicleModel.
pawn Код:
stock IsAMotorcycle(carid)
{
switch (carid)
{
case 448, 461 .. 463, 468, 471, 521 .. 523, 581, 586: return 1;
}
return 0;
}
pawn Код:
if (IsAMotorcycle(GetVehicleModel(vehicleid))) ...