21.05.2012, 06:56
Quote:
|
Its not safe to use GetTickCount for stuff like this, i know this first hand. It bugs if the server isn't restarted within 24 days. And i don't mean samp server i mean the machine it is running on.
GetTickCount wraps to -2,147,483,647 when it gets past 2,147,483,647. gettime() is safer to use. I would advise nobody to use the GetTickCount method. Kingj servers doesn't always restart within 24 days, that's how i know. One day all commands (that had anti abuse) stopped working, i printed GetTickCount and it was a negative value. Had to switch all code to gettime(). Just saying this in the hopes of saving someone time. |
I use gettickcount for most anti-spamming, gettime for expiration of things.


