Timer Time Issues.
#2

You could add the points with the timer + GetTickCount()

pawn Код:
new lasttick[MAX_PLAYERS];

public TimerFunc(playerid)
{
    if(GetTickCount() - lasttick[playerid] >= 1000)
    {
        SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
        lasttick[playerid] = GetTickCount();
    }
}
This will check in addition, if really more than a sec went since the player got his last point. So the max tolerance will be 1 point.
Reply


Messages In This Thread
Timer Time Issues. - by Code_Red - 26.09.2010, 20:08
Re: Timer Time Issues. - by Mauzen - 26.09.2010, 20:23
Re: Timer Time Issues. - by Code_Red - 26.09.2010, 20:26
Re: Timer Time Issues. - by LarzI - 26.09.2010, 20:26

Forum Jump:


Users browsing this thread: 1 Guest(s)