how to make a multiple defines
#1

idk if the title say what i mean

i wanna make something like this

pawn Код:
if(carid == ShopCars)
{
       //code
}
ShopCars Should Be more than 1 car so it should check
if carid == all shopcars how to make something like that??

how to define shopcars as more than 1 integer or w/e

how plz help
Reply
#2

pawn Код:
new shopcars[5];//5 cars
pawn Код:
shopcars[0] = AddStaticVehicle(//whatever your wish);
shopcars[1] = AddStaticVehicle(// whatever your wish);
ect...

Perhaps ?
Reply
#3

ok but i want to check all at 1 time like

if(carid == ShopCars)

this is not working
Reply
#4

Try something like:

pawn Код:
new vid = GetPlayerVehicleID(playerid);
       
if(vid == ShopCars[1]
Ect....
Reply
#5

pawn Код:
new carid;
carid = GetPlayerVehicleID(playerid);
if(carid == ShopCars)
Enjoy.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)