SA-MP Forums Archive
Cikle - 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: Cikle (/showthread.php?tid=616026)



Cikle - MerryDeer - 30.08.2016

Hi,

How much i can do cikle that is support for pawno?

Код:
for(new i = 0; i < 1000000; i ++)
{

}
I can 1 million?


Re: Cikle - Shinja - 30.08.2016

For what the hell you may need it?


Re: Cikle - Logic_ - 30.08.2016

That loops looks like a unlimited loop that may freeze the server.


Re: Cikle - MerryDeer - 30.08.2016

It's not will by like that smth

Код:
for( new i = 0; i < 20; i ++)
{
 for( new v = 0; v < MAX_VEHICLES; v ++)
{
     for( new n = 0; n < 30; n ++)
   {
       if( smtthhh[ n ] == true )
     {
            break;
     }
   }
}
}