Score Timer Not Working properly..
#1

Any can check this script if it is correct?

new seconds[MAX_PLAYERS];


pawn Код:
forward scoretimer();
public scoretimer()
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i)) continue;
        {
         seconds[i] ++;
         if(seconds[i] >= 1800)
         {
            SetPlayerScore(i, GetPlayerScore(i) + 1);
            seconds[i] = 0;
         }
       }
    }
    return 1;
}
public OnPlayerConnect(playerid)
seconds[playerid] = 0; //Count Score timer
Reply


Messages In This Thread
Score Timer Not Working properly.. - by kbalor - 31.07.2012, 18:23
Re: Score Timer Not Working properly.. - by Majed - 31.07.2012, 18:29
Re: Score Timer Not Working properly.. - by kbalor - 31.07.2012, 18:43
Re: Score Timer Not Working properly.. - by Majed - 31.07.2012, 18:45
Re: Score Timer Not Working properly.. - by kbalor - 31.07.2012, 18:52
Re: Score Timer Not Working properly.. - by Majed - 31.07.2012, 19:08
Re: Score Timer Not Working properly.. - by RelaxCafe - 31.07.2012, 19:15
Re: Score Timer Not Working properly.. - by XStormiest - 31.07.2012, 19:17
Re: Score Timer Not Working properly.. - by Majed - 31.07.2012, 19:18
Re: Score Timer Not Working properly.. - by XStormiest - 31.07.2012, 19:21

Forum Jump:


Users browsing this thread: 1 Guest(s)