Bug with PlayAudioStreamForPlayer
#1

When i add this:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
        if(dialogid == RADIO)
        {
            if(listitem == 0)
            {
            StopAudioStreamForPlayer(playerid);
            GameTextForPlayer(playerid, "Radio Stopped.",2500,1);
            }
            if(listitem == 1)
            {
            PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1283896");
            GameTextForPlayer(playerid, "Playing 181.FM - POWER 181...",2500,1);
            }
            if(listitem == 2)
            {
            PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=35402");
            GameTextForPlayer(playerid, "Playing 181.FM - Chilled...",2500,1);
            }
            if(listitem == 3)
            {
            PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=508962");
            GameTextForPlayer(playerid, "Playing 181.FM - Party...",2500,1);
            }
            if(listitem == 4)
            {
            PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=297243");
            GameTextForPlayer(playerid, "Playing 181.FM - Highway 181...",2500,1);
            }
            if(listitem == 5)
            {
            PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1283687");
            GameTextForPlayer(playerid, "Playing 181.FM - Kickin' Country...",2500,1);
            }
            if(listitem == 6)
            {
            PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=248370");
            GameTextForPlayer(playerid, "Playing COUNTRY 108...",2500,1);
            }
            if(listitem == 7)
            {
            PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=520036");
            GameTextForPlayer(playerid, "Playing DEFJAY.COM - 100% R&B...",2500,1);
            }
            if(listitem == 8)
            {
            PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=203280");
            GameTextForPlayer(playerid, "Playing Antena1 SP 94,7 FM...",2500,1);
            }
            if(listitem == 9)
            {
            PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=914897");
            GameTextForPlayer(playerid, "Playing idobi Radio...",2500,1);
            }
            if(listitem == 10)
            {
            PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=210158");
            GameTextForPlayer(playerid, "Playing America Country Radio...",2500,1);
            }
            if(listitem == 11)
            {
            PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=86433");
            GameTextForPlayer(playerid, "Playing Absolutely Smooth Jazz - SKY.FM...",2500,1);
            }
            if(listitem == 12)
            {
            PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=467000");
            GameTextForPlayer(playerid, "Playing SmoothJazz.com Global Radio...",2500,1);
            }
            if(listitem == 13)
            {
            PlayAudioStreamForPlayer(playerid, "http://cnr-radio.com/listen.m3u");
            GameTextForPlayer(playerid, "Playing CnR Radio...",2500,1);
            }
            if(listitem == 14)
            {
            PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=721890");
            GameTextForPlayer(playerid, "Playing ))) POLSKASTACJA .PL )))...",2500,1);
            }
            if(listitem == 15)
            {
            PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=31903");
            GameTextForPlayer(playerid, "Playing NOISEfm.pl - Niezalezne Radio Rock...",2500,1);
            }
            if(listitem == 16)
            {
            PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=35899");
            GameTextForPlayer(playerid, "Playing RadioTeenTal Indian and Bollywood...",2500,1);
            }
            if(listitem == 17)
            {
            PlayAudioStreamForPlayer(playerid, "http://www.dubstep.fm/listen.pls");
            GameTextForPlayer(playerid, "Playing DUBSTEP.FM...",2500,1);
            }
            if(listitem == 18)
            {
            PlayAudioStreamForPlayer(playerid, "http://servers.internet-radio.com/tools/playlistgenerator/?u=http://www.partyvibe.com:8006/listen.pls&t=.pls");
            GameTextForPlayer(playerid, "Playing PARTY VIBE RADIO...",2500,1);
            }
            if(listitem == 19)
            {
            PlayAudioStreamForPlayer(playerid, "http://servers.internet-radio.com/tools/playlistgenerator/?u=http://92.48.107.35:8004/listen.pls&t=.pls");
            GameTextForPlayer(playerid, "Playing RADIO ORO MARBELLA EN DIRECTO...",2500,1);
            }
            if(listitem == 20)
            {
            PlayAudioStreamForPlayer(playerid, "http://servers.internet-radio.com/tools/playlistgenerator/?u=http://sc1.christiannetcast.com:9138/listen.pls&t=.pls");
            GameTextForPlayer(playerid, "Playing Radio Nueva Vida...",2500,1);
            }
        }
    }
I got:
error 017: undefined symbol "StopAudioStreamForPlayer"
Reply
#2

Are you compiling with the correct SA-MP folder? o.O
Make sure you're using the latest one 0.3x
Reply
#3

If u are using earlier version than 0.3d of samp it will not work , so make sure u r using latest version of samp.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)