[HELP] Audio
#1

Dear users,

I got a problem with the audio plugin, it seems to be not working and the radio url is correct and works. This is my code:

Код:
   case 8000:
            {
                switch(listitem)
                {
                    case 0:
                    {
                        Radio[playerid] = Audio_PlayStreamed(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=199616",false,false,false);
                          Audio_Set3DPosition(playerid, Radio[playerid], Player[playerid][LastX], Player[playerid][LastY], Player[playerid][LastZ], 10.0);
                          Audio_SetVolume(playerid, Radio[playerid], 100);
                           SendClientMessage(playerid, WHITE, "* You have turned on the Hip Hop station.");
                    }
                    case 1:
                    {
                        Radio1[playerid] = Audio_PlayStreamed(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1280356",false,false,false);
                          Audio_Set3DPosition(playerid, Radio[playerid], Player[playerid][LastX], Player[playerid][LastY], Player[playerid][LastZ], 10.0);
                          Audio_SetVolume(playerid, Radio1[playerid], 100);
                           SendClientMessage(playerid, WHITE, "* You have turned on the Rock station.");
                    }
                    case 2:
                    {
                        Audio_Stop(playerid, Radio[playerid]);
                        Audio_Stop(playerid, Radio1[playerid]);
                           SendClientMessage(playerid, WHITE, "* You have turned off the Boombox.");
                    }
                }
            }
Everything complies fine..
Reply
#2

Why don't you upgrade to SA:MP 0.3d and use PlayAudioStreamForPlayer
Reply
#3

Damn that's stupid, thank you.
Reply
#4

Well, I got another question then though. Can you use PlayAudioStreamForPlayer in a interior?
Reply
#5

I think yes, you can use it anywhere.
This forum requires that you wait 120 seconds between posts. Please try again in 16 seconds.:S
Reply
#6

Try to use IP instead URL of playlist.
For first radiostation: http://64.250.116.189:8002
For second radiostation: http://scfire-dtc-aa04.stream.aol.com:80/stream/1074
Quote:
Originally Posted by HF-PR
Посмотреть сообщение
Well, I got another question then though. Can you use PlayAudioStreamForPlayer in a interior?
It works in any place. But it turns off standart misc sound of game like wave of see, wind and ect.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)