• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] [SOLVED] how make a correct IF function with for parameter vehicle ID == enum id
#5
But is not work in a lot o vehicle dealer. I see a simply function like sample :

Code:
stock IsVelo(carid) { switch(GetVehicleModel(carid)) { case 481,509,510:return true; } return 0; } stock IsFlyCar(carid) { switch(GetVehicleModel(carid)) { case 417,425,430,441,446,447,452..454,460,469,472,473,476,484,487,488,493,497,501,511..513,519,520,539,548,553,563,571,577,592,593,595:return true; } return 0; }



How to fix this issue sir?



Code:
stock IsPlayerInDealerVehicle(playerid) { /* switch(GetPlayerVehicleID(playerid)) { case for(new salon=1;salon<MAX_SALON;salon) ? ? { for(new s=1;s<MAX_SALON_SLOT;s) ? ? ? ? ? ? { ? ? ? ? ? ? ? SalonCarIdSlot[salon][s]; ? ? ? ? ? ? } }? ? ? ? ? ? :return true; } return 0; */ }
  Reply


Messages In This Thread
RE: HELP! how to make a correct IF function with the required parameter vehicle ID ? - by PutuSuhartawan - 2021-05-01, 06:12 PM