Having trouble with PlayAudioStream
#1

I'm just now getting to scripting with the new functions and i have a problem. I have this code:
pawn Код:
if(dialogid == 10001)
    {
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid,X,Y,Z);
        if(!response) return PlayAudioStreamForPlayer(playerid,"http://translate.******.com/translate_tts?tl=en&q=Goodbye",X,Y,Z,13,1);
        //
    }
It doesn't work. It wont play the audio stream.. Anyone know whats wrong?
Reply
#2

It's not a direct link .The URL plays the stream from somewhere else.To play you have to get a direct link which is a .mp3 or a .pls in the end.
Also you are playing it when the user cancels the dialog unless you want this to play when he cancels it.
Reply
#3

Fixed it, the code worked. I just had the radio sound off.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)