My 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)
+--- Thread: My timer problem. (
/showthread.php?tid=379631)
My timer problem. -
KingyKings - 22.09.2012
At the top of my script
Quote:
forward message(playerid);
|
Under in gamemode init.
Quote:
SetTimer("message", 60000, false);
|
Then i have
Код:
public message(playerid)
{
TextDrawShowForPlayer(playerid, Text:Textdraw1);
PlayAudioStreamForPlayer(playerid, "http://soundfxnow.com/soundfx/RefereeWhistle02.mp3");
}
the timer doesnt actually work? after i have waited a minute it just doesnt do anything?
Re: My timer problem. -
KingyKings - 22.09.2012
Any reason why or does the code look right to you? :/
Re: My timer problem. -
SKAzini - 22.09.2012
Perhaps it doesnt load the song from the server.. or maybe you need to have the timer playerid-wise..
Re: My timer problem. -
jameskmonger - 22.09.2012
SetTimerEx("message", 60000, false, "i", playerid);
It won't work in OnGameModeInit