SA-MP Forums Archive
PlayAudioStreamForPlayer Problem 0.3x - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: PlayAudioStreamForPlayer Problem 0.3x (/showthread.php?tid=412340)



PlayAudioStreamForPlayer Problem 0.3x - TwisTa98 - 01.02.2013

Hello SA-MP Team.

I Make Command for play music in 0.3x, I Haven't Error In Pawn but In Game Is Anything for this.

Code:
Код HTML:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/Music", cmdtext, true) == 0)
    {
        PlayAudioStreamForPlayer(playerid, "http://picosong.com/success/e0e82645f046a1a18064b070cede8d1f/");
        return 1;
    }
	return 0;
}
This Is Bug or My Warning?


Re: PlayAudioStreamForPlayer Problem 0.3x - QuaTTrO - 01.02.2013

The url is wrong.
Try this:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/Music", cmdtext, true) == 0)
    {
        PlayAudioStreamForPlayer(playerid, "http://picosong.com/cdn/167ecd48461c95b040569b0ab5c37c10/");
        return 1;
    }
    return 0;
}
You need direct links to audio files.


Re: PlayAudioStreamForPlayer Problem 0.3x - TwisTa98 - 01.02.2013

i try this but not work in game not writes AudioStreamblablablabla.. And not starting.


Re: PlayAudioStreamForPlayer Problem 0.3x - Michael@Belgium - 01.02.2013

The link should be a music file .. so at then ending with .mp3 or .m3u, ...


Re: PlayAudioStreamForPlayer Problem 0.3x - TwisTa98 - 01.02.2013

Quote:
Originally Posted by Michael@Belgium
Посмотреть сообщение
The link should be a music file .. so at then ending with .mp3 or .m3u, ...
Yes but when i have typed this, in Game why writes AudioStreamblablablabla..?
In 0.3e version, When URL ending isn't Mp3, In Game Writes AudioStream... but music is not starting.
here is None.

But i try this And write here.


Re: PlayAudioStreamForPlayer Problem 0.3x - leong124 - 01.02.2013

The download link is different for different users. The site isn't suitable for streaming in server.
Try to use ******'s web service or some other cloud storage. It isn't a bug.


Re: PlayAudioStreamForPlayer Problem 0.3x - TwisTa98 - 01.02.2013

ahh not!

Код HTML:
public OnPlayerSpawn(playerid)
{
	PlayAudioStreamForPlayer(playerid, "http://gdstvfans.org/Georgia-.mp3");
	return 1;
}
I try this url but music isn't starting!


Re: PlayAudioStreamForPlayer Problem 0.3x - CodyCummings - 01.02.2013

Do you have your radio on in the pause menu? You need to have it on to hear the stream.


Re: PlayAudioStreamForPlayer Problem 0.3x - QuaTTrO - 01.02.2013

Quote:
Originally Posted by CodyCummings
Посмотреть сообщение
Do you have your radio on in the pause menu? You need to have it on to hear the stream.
4Char


Re: PlayAudioStreamForPlayer Problem 0.3x - Jochemd - 02.02.2013

Quote:
Originally Posted by TwisTa98
Посмотреть сообщение
In 0.3e version, When URL ending isn't Mp3, In Game Writes AudioStream... but music is not starting.
It always sends that message, even when it's a valid or completely rubbish link.