Why won't PlayAudioStreamForPlayer work? - 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: Why won't PlayAudioStreamForPlayer work? (
/showthread.php?tid=397631)
Why won't PlayAudioStreamForPlayer work? -
101 - 06.12.2012
PlayAudioStreamForPlayer(playerid, "http://mysite.com/song.mp3");
I can open it directly on my browser, and it works fine. However when adding this code into my script, nothing happens (note it is under a command for all it matters)
Anyone knows why?
Re: Why won't PlayAudioStreamForPlayer work? -
Horrible - 06.12.2012
Quote:
Originally Posted by 101
PlayAudioStreamForPlayer(playerid, "http://mysite.com/song.mp3");
I can open it directly on my browser, and it works fine. However when adding this code into my script, nothing happens (note it is under a command for all it matters)
Anyone knows why?
|
i think the link is invalid. because when i open on my browser it say "page not found"
Re: Why won't PlayAudioStreamForPlayer work? -
101 - 06.12.2012
Quote:
Originally Posted by Horrible
i think the link is invalid. because when i open on my browser it say "page not found"
|
You do realize I put "mylink" on purpose? lol.
Re: Why won't PlayAudioStreamForPlayer work? -
Horrible - 06.12.2012
Quote:
Originally Posted by 101
You do realize I put "mylink" on purpose? lol.
|
hahaha you dont say that link is fake
Re: Why won't PlayAudioStreamForPlayer work? -
101 - 06.12.2012
Quote:
Originally Posted by Horrible
hahaha you dont say that link is fake
|
Do I have to? >.> its obvious.
Re: Why won't PlayAudioStreamForPlayer work? -
Horrible - 06.12.2012
Quote:
Originally Posted by 101
Do I have to? >.> its obvious.
|
honestly you have. but if you 100% it is valid so you dont have to.
i think this problem cause by an invalid link. so if the link is valid, i dont sure what make this problem happend
Re: Why won't PlayAudioStreamForPlayer work? -
goviscrap - 06.12.2012
If your link is Valid and you type your command to hear the music on your server and sees the "green text", But you cant hear anything.. then you had the same problem as I had..
It was super easy to fix.. just go to: GTA San Andreas Userfiles/SAMP/sa-mp.cfg..
Open the Sa-mp.cfg in notepad and it will probably look something like this:
Код:
fpslimit=99
multicore=1
audioproxyoff=0
Change the "audioproxyoff=0 TO audioproxyoff=1" Close, Save and go into your server and try it out