CMD:carradio(playerid)
{
ShowPlayerDialog(playerid, DIALOG_RADIO, DIALOG_STYLE_LIST, "Radio: Bitte wähle eine Kategorie","Radio 1\nRadio 2","Weiter","Schließen");
return 1;
}
case DIALOG_RADIO:
{
if(response)
{
if(listitem == 0)//RPG City Radio
{
GameTextForPlayer(playerid, "~r~Radio", 500,3);
PlayAudioStreamForPlayer(playerid, "http://s.sunset-radio.com:14160/;stream");
}
if(listitem == 1) //Hands up
{
GameTextForPlayer(playerid, "~r~Hands up", 500,3);
PlayAudioStreamForPlayer(playerid, "http://s.sunset-radio.com:14200/;stream");
}
if(listitem == 2) //Main - Charts
{
GameTextForPlayer(playerid, "~r~Main - Charts", 500,3);
PlayAudioStreamForPlayer(playerid, "http://s.sunset-radio.com:14000/;stream");
}
if(listitem == 3) //Rock
{
GameTextForPlayer(playerid, "~r~Rock", 500,3);
PlayAudioStreamForPlayer(playerid, "http://s.sunset-radio.com:14100/;stream");
}
if(listitem == 4) //Disco Fox
{
GameTextForPlayer(playerid, "~r~Disco Fox", 500,3);
PlayAudioStreamForPlayer(playerid, "http://s.sunset-radio.com:14120/;stream");
}
if(listitem == 5) //Club
{
GameTextForPlayer(playerid, "~r~Club", 500,3);
PlayAudioStreamForPlayer(playerid, "http://s.sunset-radio.com:14060/;stream");
}
if(listitem == 6) //Harder
{
GameTextForPlayer(playerid, "~r~Harder", 500,3);
PlayAudioStreamForPlayer(playerid, "http://s.sunset-radio.com:14080/;stream");
}
if(listitem == 7) //Black
{
GameTextForPlayer(playerid, "~r~Black", 500,3);
PlayAudioStreamForPlayer(playerid, "http://s.sunset-radio.com:14180/;stream");
}
if(listitem == 8) //Eurodance
{
GameTextForPlayer(playerid, "~r~Eurodance", 500,3);
PlayAudioStreamForPlayer(playerid, "http://s.sunset-radio.com:14020/;stream");
}
}
}
Ich habe 2 Kategorien:
Beim ersten:
Soll man den Ersten Sender Auswählen Können
Bei den Rest alles in die 2 Kategorie was hab ich falsch gemacht??