Checking the time.
#4

You could check with a one second timer and GetTickCount:

pawn Код:
//above main()
new tick, NextCheck;

//In OnGameModeInit:
SetTimer(....); // with 1 sec interval

//In your one second function being called by SetTimer:
tick = GetTickCount();
if(tick - NextCheck > 3600000) //3600000 = 1 hour
{

//your code... so calling a function (PayCheck) or something

NextCheck = tick;

}
Reply


Messages In This Thread
Checking the time. - by Jacksta21 - 10.05.2014, 23:28
AW: Checking the time. - by Macronix - 11.05.2014, 00:19
Re: AW: Checking the time. - by Jacksta21 - 11.05.2014, 00:27
AW: Checking the time. - by Macronix - 11.05.2014, 00:37
Re: Checking the time. - by Jacksta21 - 11.05.2014, 02:00

Forum Jump:


Users browsing this thread: 3 Guest(s)