SA-MP Forums Archive
Looping this 2 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: Looping this 2 Array (/showthread.php?tid=485127)



Looping this 2 Array - ToiletDuck - 03.01.2014

fix


Re: Looping this 2 Array - Tayab - 03.01.2014

The only way I can think of is this. (Not sure if its what you need)

1. What is bigger? MAX_HOUSES or MAX_FURNITURE? Take the bigger one and put it into the for loop and the other in while loop.

pawn Код:
for(new i = 0; i < MAX_HOUSES; i++)
{
     //house code.
     while(i < MAX_FURNITURE)
     {
         // furniture code.
      }
}