Timer Problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Timer Problem (
/showthread.php?tid=88415)
Timer Problem -
Jakku - 26.07.2009
I have a problem with timer. My timer only works for ID 0.
Here:
pawn Code:
forward ScoreSystem(playerid);
public ScoreSystem(playerid)
{
SendClientMessage(playerid, COLOR_YELLOW, "Congratulations! Your score has increased by one level. You've earned a cash price of 15000$");
GivePlayerMoney(playerid, 15000);
SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
dUserSetINT(PlayerName(playerid)).("score",GetPlayerScore(playerid));
}
SetTimer("ScoreSystem", 1800000, false);
SetTimer is under onplayerconnect, and this only works for ID 0, how I can fix this it works for everyone?
Re: Timer Problem -
SpiderPork - 26.07.2009
SetTimerEx
Re: Timer Problem -
Jakku - 26.07.2009
Quote:
Originally Posted by SpiderPork
SetTimerEx
|
Really?
Re: Timer Problem -
SpiderPork - 26.07.2009
Quote:
Originally Posted by Jakku
Quote:
Originally Posted by SpiderPork
SetTimerEx
|
Really?
|
Really.
SetTimerEx("ScoreSystem", 1800000, 0, "i", playerid);
Re: Timer Problem -
Jakku - 26.07.2009
Quote:
Originally Posted by SpiderPork
Quote:
Originally Posted by Jakku
Quote:
Originally Posted by SpiderPork
SetTimerEx
|
Really?
|
Really.
SetTimerEx("ScoreSystem", 1800000, 0, "i", playerid);
|
Seems that doesn't repeat, right? If it doesn't it is good