07.04.2013, 23:30
What he means is your calling every 60 seconds which means if you start the timer at say 8:31:34 you'll never get minutes and seconds 0 it will always be some value well it is possible I suppose since 60000 ticks is really about 1:07. Anyways you got a couple of options here set your update timer to 49170 (55 seconds approx) then simply check for when the minute is zero and ignore the second as mentioned by infinity (his solution will create other problems without doing what I am explaining)
To make sure it doesn't activate twice in a minute which is possible use this...
LastPayDayTime = GetTickCount()
Then check..... if(GetTickCount() - LastPayDayTime > 60000) when your minute is zero hope that helps! Just remember it won't give the pay day on exactly when the hour hits but will sometime during that minute.
To make sure it doesn't activate twice in a minute which is possible use this...
LastPayDayTime = GetTickCount()
Then check..... if(GetTickCount() - LastPayDayTime > 60000) when your minute is zero hope that helps! Just remember it won't give the pay day on exactly when the hour hits but will sometime during that minute.