SA-MP Forums Archive
A Question - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: A Question (/showthread.php?tid=257008)



A Question - Jay. - 23.05.2011

I have just searched my script for loops and I have found 18 loops! Is this bad? I don't know much about loops and also i asked about alot of CPU being used... Trouble is these loops are needed. anyway could this be the cause to my high CPU?

And if someone could explain how they are bad and give me something else to use.

Thanks

EDIT: The script is a download


Re: A Question - ddnbb - 23.05.2011

Loops arent automatically bad. It all depends. Where is your loops, is there loops in loops, etc etc.