PlayAudioStreamForPlayer Problem 0.3x
#1

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?
Reply
#2

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.
Reply
#3

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

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

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.
Reply
#6

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.
Reply
#7

ahh not!

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

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

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
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)