restarting an audiostream when it ends - 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: restarting an audiostream when it ends (
/showthread.php?tid=396347)
restarting an audiostream when it ends -
niels44 - 30.11.2012
hey all,
ok so i have in my GM that when someone joins, the audiostream starts for him, and a timer gets set(46.31, min.sec) but now the timer should be called AFTER those 46.31 mins, but it doesnt, sometimes it just restarts the song in the middle of it, so like the song is for 20 mins done, and it restarts it....
onplayerconnect
pawn Код:
PlayAudioStreamForPlayer(playerid, "https://dl.dropbox.com/u/81961893/serverstreamlow.mp3");
SetTimerEx("RestartRadio",2791000, false, "d", playerid);
the timer
pawn Код:
forward RestartRadio(playerid);
public RestartRadio(playerid)
{
PlayAudioStreamForPlayer(playerid, "https://dl.dropbox.com/u/81961893/serverstreamlow.mp3");
return 1;
}
anyone has an idea why this isnt working?
also in in 4.0a it would be nice to have onaudiostreamend, it would make alot of things like this easier.
greets niels
Re: restarting an audiostream when it ends -
niels44 - 01.12.2012
nobody?