Best way to detect if AFK
#6

This doesn't even compile, no doubt it is wrong.
pawn Code:
new Float:Pos[3], Float:OldPos[3], Float:NewPos[3];
    GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
    OldPos[0] = Pos[0];
    OldPos[1] = Pos[1];
    OldPos[2] = Pos[2];
    GetPlayerPos(playerid, NewPos[0], NewPos[1], NewPos[2]);
    if(OldPos[0] == NewPos[0]))
    {
        print("Player stopped moving");
    }
Error is: invalid expression, assumed zero.
Reply


Messages In This Thread
Best way to detect if AFK - by Luis- - 03.02.2012, 21:44
Re: Best way to detect if AFK - by shitbird - 03.02.2012, 22:17
Re: Best way to detect if AFK - by jamesbond007 - 03.02.2012, 22:20
Re: Best way to detect if AFK - by MP2 - 03.02.2012, 22:24
Re: Best way to detect if AFK - by ғαιιοцт - 03.02.2012, 22:25
Re: Best way to detect if AFK - by Luis- - 04.02.2012, 13:48
Re: Best way to detect if AFK - by thimo - 04.02.2012, 14:56
Re: Best way to detect if AFK - by Luis- - 04.02.2012, 15:37
Re: Best way to detect if AFK - by Luis- - 04.02.2012, 19:41
AW: Best way to detect if AFK - by xXpatoXx - 04.02.2012, 19:47

Forum Jump:


Users browsing this thread: 2 Guest(s)