Problem with GettickCount
#3

Quote:
Originally Posted by Nero_3D
Посмотреть сообщение
The problem is your maths skill

Thats your code
pawn Код:
GetTickCount() - GetPVarInt(playerid, "iSpamInterval") / 1000
Now I will use some numbers
pawn Код:
1005000 - 1002000 / 1000
1005000 - 1002
1003998
Just use brackets
pawn Код:
(GetTickCount() - GetPVarInt(playerid, "iSpamInterval")) / 1000
Also dont use PVar, they are more difficult to use and are slower than normal arrays
PVar are only useful for dynamic arrays
pawn Код:
(GetTickCount() - GetPVarInt(playerid, "iSpamInterval")) / 1000
why send me message with -3, -2, -1... ?
Reply


Messages In This Thread
Problem with GettickCount - by NewbieScripter - 14.04.2013, 11:02
AW: Problem with GettickCount - by Nero_3D - 14.04.2013, 11:16
Re: AW: Problem with GettickCount - by NewbieScripter - 14.04.2013, 11:26
Re: Problem with GettickCount - by Vince - 14.04.2013, 11:59
Re: Problem with GettickCount - by NewbieScripter - 14.04.2013, 12:06
Re: Problem with GettickCount - by NewbieScripter - 14.04.2013, 17:57

Forum Jump:


Users browsing this thread: 1 Guest(s)