29.07.2011, 15:27
Quote:
I'll say this here, like I say it every time someone gives that as a solution to this issue - you're wrong (I've given up being nice on this point). The VASTLY simpler way of doing this is just compare "GetTickCount"s.
|

Well, acording to this article of the SA-MP wiki:
pawn Код:
"GetTickCount will cause problems on servers with uptime of over 24 days (physical server, not SA:MP server) as GetTickCount will eventually warp past the integer size constraints"
A comparison of "gettime"s without arguments

pawn Код:
gettime()
Should be better than the GetTickCount method, once it is less dangerous

An example to everybody

pawn Код:
new x[MAX_PLAYERS]; //A global variable
//In the command:
if(x[playerid] != 0 && x[playerid] < gettime()) return SendClientMessage(playerid, 0xFFFFFFAA, "Wait ! :D");
x[playerid] = gettime()+3;
I hope that i have helped
