Ingame radio -- Cant hear any music? -
NoahF - 14.06.2014
I cannot hear any music from Shoutcast Radio in-game, but I can in my browser.
Here's a line, maybe I'm doing something wrong?
Код:
case 4:
{
PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=84158"); //Pop
SendClientMessage(playerid, COLOR_GREEN, "You are now listening to the Pop station. Type /stopradio to turn off the radio.");
}
I am using a dialog, using switch(listitem)
Sorry for the bad indenting, the forum messed it up.
Re: Ingame radio -- Cant hear any music? -
TheSimpleGuy - 14.06.2014
pawn Код:
case 4:
{
new string[80];
format(string, sizeof(string), "http://yp.shoutcast.com/sbin/tunein-station.pls?id=84158");
PlayAudioStreamForPlayer(playerid, string); //Pop
SendClientMessage(playerid, COLOR_GREEN, "You are now listening to the Pop station. Type /stopradio to turn off the radio.");
}
Re: Ingame radio -- Cant hear any music? -
SaintMikey - 14.06.2014
Not all types of Shoutcast radios is supported i believe, You may try
http://tuner.gayfm.de:80 instead, Which is a radio most servers support(s), and do you have the audio plugin?
Re: Ingame radio -- Cant hear any music? -
iFiras - 14.06.2014
The radio is probably offline or maybe your internet connection is a bit lagged?
As far as I know, there is no other reason except this.
Re: Ingame radio -- Cant hear any music? -
BroZeus - 14.06.2014
try this line
PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls");
if this not works then do the following steps
-Download it
-Convert it to mp3
-Upload it
-Use the uploaded one
NOT:The link should end with .mp3
Re: Ingame radio -- Cant hear any music? -
TheSimpleGuy - 14.06.2014
.pls is working also throughout SA-MP.
Re: Ingame radio -- Cant hear any music? -
NoahF - 14.06.2014
I ended up deleting the radio system that I made. Thanks for the help though, guys!!
Re: Ingame radio -- Cant hear any music? -
Amrev - 14.06.2014
Why did you deleted it ?
Just you have to play the link which is in
.mp3 format.
Re: Ingame radio -- Cant hear any music? -
Threshold - 15.06.2014
Or maybe your 'radio volume' in audio settings was turned completely off.