Jump to content
  • 0

Problema AudioStreamer


BorneoJr

Question

Salut, incercam sa fac o comanda care sa porneasca radio kiss fm:

    if (strcmp("/radio", cmdtext, true) == 0)
    {
	    if(IsPlayerConnected(playerid))
	    {
	        new x_nr[126];
		    x_nr = strtok(cmdtext, idx);
		    if(!strlen(x_nr)) return SendClientMessage(playerid, -1, "USAGE: /radio [KissFm]");
		    if(strcmp(x_nr,"kissfm",true) == 0)
			{
                SendClientMessage(playerid, -1,"{990000}[RADIO] {FFCC99}KissFm loaded.");
				PlayAudioStreamForPlayer(playerid, "http://80.86.106.136:8000/listen.pls");
			}
	    }
        return 1;
    }

Problema mea este ca nu apare nimic, nici muzica nu merge.

Link to comment
Share on other sites

14 answers to this question

Recommended Posts

Citeste aici: http://www.sa-mp.ro/forum/index.php/topic,17591.msg103868.html#msg103868

Citind ce e in linkul de mai sus , as vrea sa va intreb , atunci , ce fel de radiouri poate emite samp !

Adika tot asa sa faci sa bagi radiou dar

Dau un ex.

                        	Radio[playerid] = Audio_PlayStreamed(playerid, "http://www.radiozu.ro/live.m3u",false,false,false);

in loc de http....radiozu etc... ce pui ?!

icecash shotucast

De exemplu am luat un radio Shoutcast de pe winamp si tot nu merge , nu aud nimic

Ma puteti ajuta?

Link to comment
Share on other sites

Pai si ce fac , sa bag u nradio acolo , orice radio sa se auda muzica cum fac?

Cum fac sa bag muzica :)

Nu le bagi pe cele care nu merg, nu poti sa le faci sa mearga, decat sa vorbesti cu cei de la radio sa bage Shoutcast/Icecast, gen cu cei de la KissFM, MagicFM, Radio ZU, deci, n-ai sanse.
Link to comment
Share on other sites

Sa zicem ca gasesc un radio dinala desi nu cred.

Cum fac unde il bag?!

Eu am comanda asta

if(strcmp(x_nr,"zu",true) == 0)
   	        {
                if(m != 510 || m != 481 || m != 509 || m != 522 || m != 521 || m != 448 || m != 457 || m !=461 || m != 462 || m != 468 || m != 463 || m != 471 || m != 523 || m != 530 || m != 581)
	           	{
					if(IsPlayerInVehicle(playerid, carid))
					{
                    	if(radioromania[playerid] != 1)
                   		{
                       		radioromania[playerid] = 1;
                        	Audio_SetVolume(playerid, Radio[playerid], 100);
                        	Radio[playerid] = Audio_PlayStreamed(playerid, "http://www.radiozu.ro/live.m3u",false,false,false);
                        	format(string, sizeof(string), "* %s asculta Radio Zu in %s.", sendername,aVehicleNames[vehicles]);
				            ProxDetector(8.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        	TextDrawShowForPlayer(playerid, radiozuu);
                   		}
                   		else
                   		SCM(playerid, COLOR_CRS3, "** Deja asculti un radio.");
                   		return 1;
                   	}
                   	else
                   	SCM(playerid, COLOR_CRS3," ** Nu esti in masina pentru a asculta radio.");
                   	return 1;
                }
                else
                SCM(playerid, COLOR_CRS3, "** Acest vehicul nu are radio.");
                return 1;
            }

IL bag in loc de linku cu radiozu ?!sau ?

Link to comment
Share on other sites

daca vrei sa asc radio inceraca aici http://radio.netul.ro

[pawn]if(strcmp(cmd, "/radio", true) == 0) {

{

      PlayAudioStreamForPlayer(playerid,"http://asculta.radio-conect.net:8000/listen.pls");

}

return 1;

}[/pawn]

http://asculta.radio-conect.net:8000/listen.pls garantez ca merge

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.