Anti-Command text
#6

Quote:
Originally Posted by ******
Посмотреть сообщение
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.
Try to be calmer .


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 .
Reply


Messages In This Thread
Anti-Command text - by budelis - 29.07.2011, 14:31
Re: Anti-Command text - by Famalamalam - 29.07.2011, 14:38
Re: Anti-Command text - by Famalamalam - 29.07.2011, 15:05
Re: Anti-Command text - by [DM]Kane - 29.07.2011, 15:06
Re: Anti-Command text - by Gh0sT_ - 29.07.2011, 15:27
Re: Anti-Command text - by rjjj - 29.07.2011, 15:27
Re: Anti-Command text - by Gh0sT_ - 29.07.2011, 15:33
Re: Anti-Command text - by budelis - 29.07.2011, 15:34
Re: Anti-Command text - by Calgon - 29.07.2011, 15:40
Re: Anti-Command text - by Famalamalam - 29.07.2011, 15:41

Forum Jump:


Users browsing this thread: 2 Guest(s)