PlayAudioStreamForPlayer for Linux?
#1

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

Use PlayAudioStreamForPlayer
Reply
#3

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;
}

Reply
#4

It's not working?
Reply
#5

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

This PlayAudioStreamForPlayer should be like this . not like that you put

PHP код:
PlayAudioStreamForPlayer(playerid"http://validlink/filename.mp3"); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)