Timer Help [Minutes]
#1

Guys i want to make SetTimerEx...To 1 hour how? Is it 30000 or What? give me the seconds/Minutes of 1 hour in SetTimerEx
Reply
#2

Timers are done by milliseconds.

1000 milliseconds = 1 second
60 seconds = 1 minute
60 minutes = 1 hour

So lets just calculate 1 hour in milliseconds.
1000 * 60 * 60 = 3600000.
Reply
#3

Thank you +reped
Reply
#4

If you don't want to calculate all the times you can always use these macros I just created:
pawn Код:
#define MS_HOUR(%1)              3600000*%1
#define MS_MINUTE(%1)            60000*%1
pawn Код:
main()
{
printf("%d", MS_HOUR(5));
printf("%d", MS_MINUTE(1));
}
Will output:

Код:
18000000
60000
Reply
#5

Quote:
Originally Posted by [HiC]TheKiller
Посмотреть сообщение
Timers are done by milliseconds.

1000 milliseconds = 1 second
60 seconds = 1 minute
60 minutes = 1 hour

So lets just calculate 1 hour in milliseconds.
1000 * 60 * 60 = 3600000.
All right but at the same time all wrong refer to this.

https://sampforum.blast.hk/showthread.php?tid=289675
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)