PlayAudioStreamForPlayer for Linux? - 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 for Linux? (
/showthread.php?tid=592338)
PlayAudioStreamForPlayer doesn't work. (Linux) -
Bigcheker12 - 23.10.2015
Yeah just quickly wanted to ask what the command for Streaming Music is in Linux. Because i got a server-host, and as you probably know the servers get hosted on Linux.
I coded it like this:
Quote:
public OnPlayerRequestClass(playerid, classid)
{
new string[768];
PlayAudioStreamForPlayer(playerid, "THE LINK TO THE FILE THAT IS MP3");
PlayerInfo[playerid][pModel] = Peds[classid][0];
if(IsPlayerNPC(playerid))
{
SpawnPlayer(playerid);
return 1;
}
|
This is supposed to play music when having the login screen infront of you.
Thanks for your answers.
Re: PlayAudioStreamForPlayer for Linux? -
ATGOggy - 23.10.2015
Use PlayAudioStreamForPlayer
AW: Re: PlayAudioStreamForPlayer for Linux? -
Bigcheker12 - 23.10.2015
Quote:
Originally Posted by ATGOggy
Use PlayAudioStreamForPlayer
|
I tried that.
It looks a like this:
Quote:
public OnPlayerRequestClass(playerid, classid)
{
new string[768];
PlayAudioStreamForPlayer(playerid, "THE MUSIC STREAM URL WITH .MP3 IS HERE");
PlayerInfo[playerid][pModel] = Peds[classid][0];
if(IsPlayerNPC(playerid))
{
SpawnPlayer(playerid);
return 1;
}
|
Re: PlayAudioStreamForPlayer for Linux? -
ATGOggy - 23.10.2015
It's not working?
AW: Re: PlayAudioStreamForPlayer for Linux? -
Bigcheker12 - 23.10.2015
Quote:
Originally Posted by ATGOggy
It's not working?
|
Okay, it was just a masterpiece of my extremely small brain.
I had my music sound on 0%... xD
Anyways thanks!
Re: PlayAudioStreamForPlayer for Linux? -
SoFahim - 23.10.2015
This PlayAudioStreamForPlayer should be like this . not like that you put
PHP код:
PlayAudioStreamForPlayer(playerid, "http://validlink/filename.mp3");