How to make search bar for radio stations?
#1

How can i make some search bar,like when i tipe "Power hitz" and he find me Power hitz station...

I am now using this.



Код:
#define DIALOG_MUSIC 999
Код:
if(strcmp(cmd, "/setstation", true) == 0)
{
      if(IsPlayerConnected(playerid))
      {
             new pDialog[1024];
             strcat(pDialog, "Music Name 1\n", sizeof(pDialog));
             strcat(pDialog, "Music name 2\n", sizeof(pDialog));
             strcat(pDialog, "Music name 3\n", sizeof(pDialog));
             strcat(pDialog, "Musik name 4\n", sizeof(pDialog));
             strcat(pDialog, "Musik name 5\n", sizeof(pDialog));
             ShowPlayerDialog(playerid, DIALOG_MUSIC, DIALOG_STYLE_LIST, "Stations List", pDialog, "Select", "Cancel");
             return 1;
       }
}
Код:
if(dialogid == DIALOG_MUSIC)
{
     if(response)
     {
           if(listitem == 0)
           {
                  PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=28532");//pink
           }
           if(listitem == 1)
           {
                  PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1283896");//power hitz
           }
           if(listitem == 2)
           {
                   PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=17082");//zam radio
           }
           if(listitem == 3)
           {
                   PlayAudioStreamForPlayer(playerid, "");
           }
           return 1;
     }
}
Reply
#2

Why the hell did you make a new topic? Stick to your old one; you are obviously going to receive an infraction
Reply
#3

Couse i had in my other post "+rep" and one guy told me that everyone ignores posts with "+rep"..so i made this one.
Reply
#4

You're not allowed to double post...

And, he just told you to change the topic name, not create a new topic
Reply
#5

I am apologising for double posting,but lol i didnt know...chill dude. And help if you can...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)