My timer problem.
#1

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?
Reply
#2

Any reason why or does the code look right to you? :/
Reply
#3

Perhaps it doesnt load the song from the server.. or maybe you need to have the timer playerid-wise..
Reply
#4

SetTimerEx("message", 60000, false, "i", playerid);

It won't work in OnGameModeInit
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)