[about] array - 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)
+--- Thread: [about] array (
/showthread.php?tid=643783)
[about] array -
RedFall - 27.10.2017
hi sa-mp forum members
newbie here
how do you store three vehicle in array or variable?
// some code here
PHP код:
if(vehiclemodel == 522)// nrg
{
SetVehiclePos(vehicleid, x,y,z);
SendClientMessage(playerid,COLOR_RED, COLOR_WHITE" Welcome to San Fierro.");
return 1;
}
i want to check the players' vehicle either he\she is in nrg=522, pcj=461 or fcr=521 just like that
but in this case i can only use nrg=522
Re: [about] array -
StrikerZ - 27.10.2017
PHP код:
if(vehiclemodel == 522 || vehiclemodel == 461 || vehiclemodel == 521)
Re: [about] array -
RedFall - 27.10.2017
it's working i don't need to use arrays? thanks anyway
Re: [about] array -
Fratello - 27.10.2017
Quote:
Originally Posted by RedFall
it's working i don't need to use arrays? thanks anyway
|
Nope. It's a logical operator, check here
https://msdn.microsoft.com/en-us/library/c6s3h5a7.aspx