SA-MP Forums Archive
Shoutcast stream not working... - 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: Shoutcast stream not working... (/showthread.php?tid=314648)



Shoutcast stream not working... - Rokzlive - 30.01.2012

Ok, so i made a simple radio dialog for my server.

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;
}
Under OnDialogResponse
pawn Код:
if(dialogid == 4)
        {
            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");
                }
            }
        }
None of it is working, i dont even get a Playing Stream notice. WTF did i do wrong?


Re: Shoutcast stream not working... - milanosie - 30.01.2012

U are mising the if(!response) and the if(response)

whre (!response means the player clicked cancel


Re: Shoutcast stream not working... - Rokzlive - 30.01.2012

Wow... im retarted, i didnt notice that.


Re: Shoutcast stream not working... - Rokzlive - 30.01.2012

Ok this crap is still not working.