else if and case:
#2

pawn Код:
IsAirplane(vehicleid)
{
     switch(GetVehicleModel(vehicleid))
     {
          case 460, 476, 511 .. 513: return 1;
          default: return 0;
     }
     return 0;
}

//usage
if(IsAirplane(vehicleid))
{
     //..
}
Reply


Messages In This Thread
else if and case: - by BpX - 30.11.2013, 18:11
Re: else if and case: - by Loot - 30.11.2013, 18:17
Re: else if and case: - by J4mmyHD - 30.11.2013, 18:23
Re: else if and case: - by Konstantinos - 30.11.2013, 18:48
Re: else if and case: - by BpX - 01.12.2013, 13:16

Forum Jump:


Users browsing this thread: 1 Guest(s)