AudioStream - 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: AudioStream (
/showthread.php?tid=373061)
AudioStream -
oliver12 - 29.08.2012
Hello! I wanted to create a radio system for my server, but it doesn't work. I show te actual code(everything else is right).
PHP Code:
if(response)
{
if(listitem == 0)
{
PlayAudioStreamForPlayer(playerid,"http://stream.akaver.com/streamgen.php?stream=powerhit&format=ogg&quality=low");
SendClientMessage(playerid, COLOR_YELLOW,"Nььd mдngib raadio Power Hit");
APlayerData[playerid][Raadio] = true;
}
if(listitem == 1)
{
PlayAudioStreamForPlayer(playerid,"http://striiming.trio.ee:8008/elmar.mp3");
SendClientMessage(playerid, COLOR_YELLOW,"Nььd mдngib raadio Elmar");
APlayerData[playerid][Raadio] = true;
}
if(listitem == 2)
{
PlayAudioStreamForPlayer(playerid,"http://streamer.akaver.com/streamgen.php?stream=skyplus&format=mp3&quality=hi");
SendClientMessage(playerid, COLOR_YELLOW,"Nььd mдngib raadio Sky Plus");
APlayerData[playerid][Raadio] = true;
}
}
return 1;
The code works, because I can see the SendClientMessage, but that Audio Stream: ..... doesn't show up and the music doesn't play too.
Re: AudioStream -
Dima_Tkach - 29.08.2012
Link on the radio change.
Re: AudioStream -
Akira297 - 29.08.2012
Code:
ListItem == 0 and ListItem == 2
. Will not due to the way they're linked.
However,
will work.
Re: AudioStream -
oliver12 - 29.08.2012
Didn't change anything and all 3 works

IDK why it didn't work before.
Re: AudioStream -
jimis - 29.08.2012
where i can find online radio's websites?
Re: AudioStream -
clarencecuzz - 29.08.2012
You just need file streaming websites, an example of this is kiwi6.com
NOTE: If the music does not play, it can be due to slow internet, making the music buffer more slowly, just like Youtube videos etc.
Googling radio websites is also a good idea, just make sure it's not some boring educational radio stream or something like that -____-