Help with audio stream
#5

Quote:
Originally Posted by MP2
Посмотреть сообщение
1. The parameters for PlayAudioStreamForPlayer are (playerid, url[], FloatosX = 0.0, FloatosY = 0.0, FloatosZ = 0.0, Float:distance = 50.0, usepos = 0) - you have the last one set to 10. It should be 1 if you want to play it at certain coordinates. However, I would just use playerid and url if I were you, there's no need to set the position!

2. You can't do

pawn Код:
if(something)
function();
function();
function();
you need to use brackets:
pawn Код:
if(something)
{
    function();
    function();
    function();
}
3. The URL is all messed up with %20 shit.
%20 specifies a space. Special characters use %ASCII-HEX.

Use

pawn Код:
PlayAudioStreamForPlayer(giveplayerid,"http://www.fileden.com/files/2012/4/18/3293679/Knocking%20on%20Wooden%20Door%20%20%20Sound%20Effect.mp3",x,y,z,distance,1);
Reply


Messages In This Thread
Help with audio stream - by N0FeaR - 18.04.2012, 21:30
Re: Help with audio stream - by MP2 - 18.04.2012, 21:40
Re: Help with audio stream - by N0FeaR - 18.04.2012, 22:11
Re: Help with audio stream - by N0FeaR - 18.04.2012, 22:18
Re: Help with audio stream - by SuperViper - 19.04.2012, 04:04

Forum Jump:


Users browsing this thread: 1 Guest(s)