Why won't PlayAudioStreamForPlayer work?
#1

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?
Reply
#2

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"
Reply
#3

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.
Reply
#4

Quote:
Originally Posted by 101
Посмотреть сообщение
You do realize I put "mylink" on purpose? lol.
hahaha you dont say that link is fake
Reply
#5

Quote:
Originally Posted by Horrible
Посмотреть сообщение
hahaha you dont say that link is fake
Do I have to? >.> its obvious.
Reply
#6

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
Reply
#7

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)