Ingame radio -- Cant hear any music?
#1

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

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.");
}
Reply
#3

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

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

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

.pls is working also throughout SA-MP.
Reply
#7

I ended up deleting the radio system that I made. Thanks for the help though, guys!!
Reply
#8

Why did you deleted it ?
Just you have to play the link which is in .mp3 format.
Reply
#9

Or maybe your 'radio volume' in audio settings was turned completely off.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)