[HELP] Audio - 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: [HELP] Audio (
/showthread.php?tid=309634)
[HELP] Audio -
HF-PR - 08.01.2012
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..
Re: [HELP] Audio -
§с†¶e®РµРe - 08.01.2012
Why don't you upgrade to SA:MP 0.3d and use PlayAudioStreamForPlayer
Re: [HELP] Audio -
HF-PR - 08.01.2012
Damn that's stupid, thank you.
Re: [HELP] Audio -
HF-PR - 08.01.2012
Well, I got another question then though. Can you use PlayAudioStreamForPlayer in a interior?
Re: [HELP] Audio -
§с†¶e®РµРe - 09.01.2012
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
Re: [HELP] Audio -
SDraw - 09.01.2012
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.