how to make a multiple defines - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how to make a multiple defines (
/showthread.php?tid=240719)
how to make a multiple defines -
Kyro - 16.03.2011
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
Re: how to make a multiple defines -
Stigg - 16.03.2011
pawn Код:
shopcars[0] = AddStaticVehicle(//whatever your wish);
shopcars[1] = AddStaticVehicle(// whatever your wish);
ect...
Perhaps ?
Re: how to make a multiple defines -
Kyro - 16.03.2011
ok but i want to check all at 1 time like
if(carid == ShopCars)
this is not working
Re: how to make a multiple defines -
Stigg - 16.03.2011
Try something like:
pawn Код:
new vid = GetPlayerVehicleID(playerid);
if(vid == ShopCars[1]
Ect....
Re: how to make a multiple defines -
maramizo - 16.03.2011
pawn Код:
new carid;
carid = GetPlayerVehicleID(playerid);
if(carid == ShopCars)
Enjoy.