02.02.2012, 01:47
Ok, my radio system is not working, and thats weird because its so simple.
Under OnDialogResponse
What in the heck is wrong with it?
pawn Код:
CMD:radio(playerid,params[])
{
ShowPlayerDialog(playerid,4,DIALOG_STYLE_LIST,"Radio Menu","SA:MP Default\nCountry 108\n181.FM - Kickin' Country\nHot 108 Jamz\n.977 The Hitz Channel\nDEFJAY.COM\nTop Hits Music - SKY.FM","Choose","Close");
return 1;
}
pawn Код:
if(dialogid == 4)
{
if(!response)
{
return 1;
}
if(response)
{
switch(listitem)
{
case 0:
{
StopAudioStreamForPlayer(playerid);
}
case 1:
{
PlayAudioStreamForPlayer(playerid, "country108.com/listen.pls");
}
case 2:
{
PlayAudioStreamForPlayer(playerid, "yp.shoutcast.com/sbin/tunein-station.pls?id=1283687");
}
case 3:
{
PlayAudioStreamForPlayer(playerid, "yp.shoutcast.com/sbin/tunein-station.pls?id=1281016");
}
case 4:
{
PlayAudioStreamForPlayer(playerid, "yp.shoutcast.com/sbin/tunein-station.pls?id=1280356");
}
case 5:
{
PlayAudioStreamForPlayer(playerid, "yp.shoutcast.com/sbin/tunein-station.pls?id=616366");
}
case 6:
{
PlayAudioStreamForPlayer(playerid, "yp.shoutcast.com/sbin/tunein-station.pls?id=728272");
}
}
}
}