23.05.2012, 07:50
I have this command & dialog:
and my Dialog response:
Already tried to change the dialogid couple of times but still no sound...
So what have I done wrong? please help me, i'm desperate on making my own radio system, rather on downloading fs's
PHP код:
CMD:radio(playerid, params[])
{
ShowPlayerDialog(playerid, 123,DIALOG_STYLE_LIST, "Trucker's Life - Radio Stations", "SkyFM\nBlazin PH Radio\nRadio Off","Select","Close");
return 1;
}
PHP код:
if(dialogid == 15151)
{
if(response)
{
if(listitem == 0)
{
PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=780577");
}
if(listitem == 1)
{
PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=213653");
}
if(listitem == 2)
{
StopAudioStreamForPlayer(playerid);
}
}
return 1;
}
So what have I done wrong? please help me, i'm desperate on making my own radio system, rather on downloading fs's