PVar randomly resetting?
#1

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.

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"));
}
Any ideas as to why?
Reply


Messages In This Thread
PVar randomly resetting? - by Antonio [G-RP] - 05.03.2011, 23:56

Forum Jump:


Users browsing this thread: 1 Guest(s)