SA-MP Forums Archive
[Tutorial] Easy time for timers - 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: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] Easy time for timers (/showthread.php?tid=421379)



Easy time for timers - Ari - 09.03.2013

lolll


Re: Easy time for timers - Flake. - 09.03.2013

haha nice work man, will diffidently be using this type of function, good for detecting ban evaders etc.


Re: Easy time for timers - RajatPawar - 09.03.2013

Hah, your title got my attention. This is okay, though, some tutorials are there with quite more details. But, +1 for your title!


Re: Easy time for timers - ReneG - 09.03.2013

What exactly is the point of this post?

Also, 5 minutes would be 5 times 60,000 milliseconds, not 300,000.


Re: Easy time for timers - Denying - 09.03.2013

60,000 is one minute?


Re: Easy time for timers - ReneG - 09.03.2013

Quote:
Originally Posted by Denying
Посмотреть сообщение
60,000 is one minute?
Are you dumb? There are 1,000 milliseconds in 1 second. How many seconds are in a minute? 60, so there are 60,000 milliseconds in a minute!


Re: Easy time for timers - Ari - 09.03.2013

Quote:
Originally Posted by VincentDunn
Посмотреть сообщение
What exactly is the point of this post?

Also, 5 minutes would be 5 times 60,000 milliseconds, not 300,000.
I forgot to convert that from my testing source, sorry.

FIXED!


Re: Easy time for timers - Misiur - 09.03.2013

Aren't there like alot topics about timers?

pawn Код:
#define MINUTE      (60000)
#define FIVEMINUTES         (MINUTE * 5)
#define TENMINUTES      (FIVEMINUTES * 2)
#define HOUR            (MINUTE * 60)
#define DAY         (HOUR * 24)



Re: Easy time for timers - Ari - 09.03.2013

Quote:
Originally Posted by Misiur
Посмотреть сообщение
Aren't there like alot topics about timers?

pawn Код:
#define MINUTE      (60000)
#define FIVEMINUTES         (MINUTE * 5)
#define TENMINUTES      (FIVEMINUTES * 2)
#define HOUR            (MINUTE * 60)
#define DAY         (HOUR * 24)
*sigh* man...


Re: Easy time for timers - Vince - 09.03.2013

And in the end your server will lag like shit because you're constantly setting new timers yet never destroying old ones.