15.09.2017, 01:42
Quote:
To get audio streamed from a URL, you need to add #include <a_http> at the top your script.
|
Quote:
Originally Posted by BadJih
you need the a_http.inc
|
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(i, params, GetPVarFloat(playerid, "bposX"), GetPVarFloat(playerid, "bposY"), GetPVarFloat(playerid, "bposZ"), 30.0, 1);
PHP код:
PlayAudioStreamForPlayer(i, params);