Simple question
#1

Hi,
Is it possible to do something like this:
pawn Код:
if(GetVehicleModel(vehicleid) == (420 || 438))
or something similar, so I wouldn't need to do
pawn Код:
if(GetVehicleModel(vehicleid) == 420 || GetVehicleModel(vehicleid) ==  438)
?
Reply
#2

you could do something like
pawn Код:
switch(GetVehicleModel(vehicleid))
{
    case 420, 438, xxx: do something here
}
Reply
#3

if(GetVehicleModel(vehicleid) == 420 || 43
Probably would work, not sure).
Reply
#4

or
pawn Код:
switch(GetVehicleModel(vehicleid))
{
    case 420..438: do something here
}
Reply
#5

pawn Код:
if(GetVehicleModel(vehicleid) == 420 || GetVehicleModel(vehicleid) ==  438)
make a stock like
if(GVM(vehicleid,420)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)