05.03.2011, 23:56
This code runs on a 1 second timer, and from the print I can see it climbing up and up (7,8,9..)
The problem is, it will reset and go back to 1 sometimes.
Any ideas as to why?
The problem is, it will reset and go back to 1 sometimes.
pawn Код:
if(NewPos[i][0] == OldPos[i][0] && NewPos[i][1] == OldPos[i][1] && NewPos[i][2] == OldPos[i][2])
{
SetPVarInt(i, "AFKTime", GetPVarInt(i, "AFKTime") + 1);
printf("Player AFK time %d", GetPVarInt(i, "AFKTime"));
}