SA-MP Forums Archive
return after foreach. - 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: return after foreach. (/showthread.php?tid=484220)



return after foreach. - audriuxxx - 29.12.2013

Hi,

can i do return after foreach?

ex:

Код:
if(GetPlayerScore(playerid) == 100 )
{
      foreach(i : Player)
      {

      }
      return 1;
}



Re: return after foreach. - Mattakil - 29.12.2013

why do you want to return?


Re: return after foreach. - J4mmyHD - 29.12.2013

Yes but its not needed.