29.08.2012, 06:12
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).
The code works, because I can see the SendClientMessage, but that Audio Stream: ..... doesn't show up and the music doesn't play too.
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;