Loop through 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: Loop through array (
/showthread.php?tid=569961)
Loop through array -
Sellize - 04.04.2015
xxxx
AW: Loop through array -
Mencent - 04.04.2015
Try it so.
PHP код:
for(new i;i<sizeof PayCoords;i++)
{
if(IsPlayerInRangeOfPoint(playerid,5,PayCoords[i][0],PayCoords[i][1],PayCoords[i][2]))
{
//In range
}
}
Re: AW: Loop through array -
Sellize - 04.04.2015
xxxx