HELP | loop speed. - 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: HELP | loop speed. (
/showthread.php?tid=116052)
HELP | loop speed. -
_V1rTu4L_ - 27.12.2009
hello..
from now i'm saying, if i have spelling mistakes, sorry !
lets take for example this loop:
pawn Код:
for(new i; i < MAX_PLAYERS; i++)
{
}
what is the speed, between, 0 to 1? and 1 to 2? and like this..
how can i know it?
thank you !
Re: HELP | loop speed. -
Grim_ - 27.12.2009
How quickly it goes between number 0 and number 1?
Re: HELP | loop speed. -
_V1rTu4L_ - 27.12.2009
Quote:
Originally Posted by _Xerxes_
How quickly it goes between number 0 and number 1?
|
yes..
thank you
Re: HELP | loop speed. -
Grim_ - 27.12.2009
I'm not completely sure. But you can always make a quick test script seeing yourself.
Try using a loop in OnGameModeInit with the function GetTickCount. Might work, not completely sure.
Also, may I ask why you need to know this?
Re: HELP | loop speed. -
_V1rTu4L_ - 27.12.2009
for search a short way, and know how much it's change
Re: HELP | loop speed. -
mamorunl - 27.12.2009
1 loop will initiate in under a second. That is how fast it will go. I don't know if you want it above a second, but then you need to use a timer
Greets,
mamoru