[!]Sloved
#1

-
Reply
#2

pawn Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 589 || 492 || 516 || 404 || 547 || 489 || 505 || 405 || 421)
You can't write this way.
You should type:
pawn Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 589 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 492 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 516 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 404 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 547 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 489 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 505 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 405 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 421)
It looks very unefficient, so to optimize it, make
pawn Код:
new model = GetVehicleModel(vehicleid);
and then replace yours with:
pawn Код:
switch(model)
{
  case 589,492,516,404,547,489,505,405,421: return 1;
}
I'm looking forward for your finished work.
Reply
#3

Ok. Thanks
Reply


Forum Jump:


Users browsing this thread: