[Tutorial] Easy time for timers
#1

lolll
Reply
#2

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

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

What exactly is the point of this post?

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

60,000 is one minute?
Reply
#6

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!
Reply
#7

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!
Reply
#8

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)
Reply
#9

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...
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)