Timer Not Working
#1

When I go IG and spawn, after 3 minutes I do not get any score. (Yes, I loaded the FS.)
Here's the code:
Код:
forward ScoreTimer(playerid);
public OnPlayerSpawn(playerid)
{
	SetTimer("ScoreTimer", 180000, true);
	return 1;
}

public ScoreTimer(playerid)
{
        SetPlayerScore(playerid, GetPlayerScore(playerid) + 2);
	SendClientMessage(playerid, COLOR_LBLUE, "You have played for 3 minutes, you have earned +2 score!");
	return 1;
}
It's supposed to make each player get +2 score after 3 minutes of playing.
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: 1 Guest(s)