Score timer does not work
#1

I've request a score timer in the script request thread #5,it seemed to be working but it doesn't.
Here's the code:
pawn Код:
#include <a_samp>
new ScoreTimer;

public OnPlayerUpdate(playerid)
{
    new time = gettime();
    if(ScoreTimer < time)
    {
        ScoreTimer++;
    }
    if(ScoreTimer == 60)
    {
        new score = GetPlayerScore(playerid);
        SetPlayerScore(playerid, score+1);
        ScoreTimer = 0;
    }
    return 1;
}
Whats really wrong?
Reply


Messages In This Thread
Score timer does not work - by Johnson_Brooks - 30.08.2012, 15:15
Re: Score timer does not work - by Johnson_Brooks - 30.08.2012, 17:18
Re: Score timer does not work - by Jessyy - 30.08.2012, 17:32
Re: Score timer does not work - by lamarr007 - 30.08.2012, 17:33
Re: Score timer does not work - by Johnson_Brooks - 30.08.2012, 17:39
Re: Score timer does not work - by playbox12 - 30.08.2012, 17:52
Re: Score timer does not work - by Johnson_Brooks - 30.08.2012, 18:12

Forum Jump:


Users browsing this thread: 1 Guest(s)