Audio stream problem.
#5

Quote:
Originally Posted by Debjit
Посмотреть сообщение
To get audio streamed from a URL, you need to add #include <a_http> at the top your script.
No you don't...

Quote:
Originally Posted by BadJih
you need the a_http.inc
Oh please, go jump on another bandwagon and increase your post count somewhere else.

With PlayAudioStreamForPlayer, you can stream the audio at a set location (coordinates) or you can simply stream directly to the player. Seeing as you're getting the player's position and then streaming to those coordinates, I can only assume that you're trying to create a direct stream to the player's client. In this case, you don't need to use the coordinate parameters of PlayAudioStreamForPlayer.

Simply change:
PHP код:
PlayAudioStreamForPlayer(iparamsGetPVarFloat(playerid"bposX"), GetPVarFloat(playerid"bposY"), GetPVarFloat(playerid"bposZ"), 30.01); 
To:
PHP код:
PlayAudioStreamForPlayer(iparams); 
If that doesn't change anything, then you need to make sure that you are actually passing all your 'if' statements, and do some debugging to see what is getting called and what isn't.
Reply


Messages In This Thread
Audio stream problem. - by andrikela - 14.09.2017, 17:54
Re: Audio stream problem. - by Zeth - 14.09.2017, 18:07
Re: Audio stream problem. - by BadJih - 14.09.2017, 18:09
Re: Audio stream problem. - by andrikela - 14.09.2017, 18:38
Re: Audio stream problem. - by Threshold - 15.09.2017, 01:42
Re: Audio stream problem. - by andrikela - 15.09.2017, 09:46
Re: Audio stream problem. - by andrikela - 15.09.2017, 09:50
Re: Audio stream problem. - by Kane - 15.09.2017, 09:56
Re: Audio stream problem. - by andrikela - 15.09.2017, 10:11
Re: Audio stream problem. - by Kane - 15.09.2017, 10:16

Forum Jump:


Users browsing this thread: 4 Guest(s)