Auto Updater..
#7

I'm 99% sure, that there is no 60'th minute.
Do it my way:
pawn Код:
new CurrentHour;
// on top

forward secondtimer();
public secondtimer()
{
    new hour,minute,second;
    gettime(hour,minute,second);
    if(hour != CurrentHour)
    {
       CurrentHour=hour;
       for(new playerid;playerid<MAX_PLAYERS;playerid++) if(IsPlayerConnected(playerid) SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
       SetWorldTime(hour);
    }

}
// And it should be done like this OnGameModeInit.
SetTimer("secondtimer",1000,false);
Reply


Messages In This Thread
Auto Updater.. - by Luis- - 19.07.2011, 12:49
Re: Auto Updater.. - by Famalamalam - 19.07.2011, 12:52
Re: Auto Updater.. - by Luis- - 19.07.2011, 12:58
Re: Auto Updater.. - by Famalamalam - 19.07.2011, 13:25
Re: Auto Updater.. - by Luis- - 19.07.2011, 13:29
Re: Auto Updater.. - by Famalamalam - 19.07.2011, 13:43
Re: Auto Updater.. - by wups - 19.07.2011, 14:47
Re: Auto Updater.. - by Famalamalam - 19.07.2011, 14:49

Forum Jump:


Users browsing this thread: 1 Guest(s)