Timer Not Working
#5

Quote:
Originally Posted by Pangea
Посмотреть сообщение
It does work but ScoreTimer needs a playerid.
SetTimer does not support parameters, which ScoreTimer needs.

Use SetTimerEx instead.
pawn Код:
public OnPlayerSpawn(playerid)
{
    SetTimerEx("ScoreTimer", 180000, true, "i", playerid);
    return 1;
}
This actually won't work properly unless you destroy the timer in OnPlayerDeath and OnPlayerDisconnect. Every time the player spawns a new timer will be set while the old one is still running.
Reply


Messages In This Thread
Timer Not Working - by NoahF - 23.06.2013, 09:53
Re: Timer Not Working - by Pangea - 23.06.2013, 09:55
Re: Timer Not Working - by NoahF - 23.06.2013, 09:57
Re: Timer Not Working - by NoahF - 23.06.2013, 10:02
Re: Timer Not Working - by Vince - 23.06.2013, 10:11
Re: Timer Not Working - by NoahF - 23.06.2013, 10:13
Re: Timer Not Working - by NoahF - 23.06.2013, 10:47
Re: Timer Not Working - by Camorra - 23.06.2013, 11:10
AW: Timer Not Working - by Skimmer - 23.06.2013, 11:16
Re: Timer Not Working - by NoahF - 23.06.2013, 11:36

Forum Jump:


Users browsing this thread: 3 Guest(s)