MP3 Player
#4

I have also added
Код:
#define DIALOG_MUSICPLAYER  1
and
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIALOG_MUSICPLAYER) // This checks to see if the dialog the players viewing is the music player one
    {
          if(response) // If the player clicked a song
          {
               if(listitem == 0) // Since this is a list, we check if they clicked the first song on the list.
               {
                       PlayAudioStreamForPlayer(playerid, "URL"); // Play the song 
               }
               if(listitem == 1) // We now check if the player clicked the second song
               {
                       PlayAudioStreamForPlayer(playerid, "URL"); // Play the song
               }
               if(listitem == 2) // or the third song.
               {
                       PlayAudioStreamForPlayer(playerid, "URL"); // Play the song
               }
           }
      }
    return 1;
}
Reply


Messages In This Thread
FIXED! - by ryanhawk31 - 18.04.2013, 03:24
Re: MP3 Player - by Scenario - 18.04.2013, 04:05
Re: MP3 Player - by ryanhawk31 - 18.04.2013, 04:22
Re: MP3 Player - by ryanhawk31 - 18.04.2013, 04:44
Re: MP3 Player - by MarTaTa - 18.04.2013, 04:54
Re: MP3 Player - by ryanhawk31 - 18.04.2013, 04:58

Forum Jump:


Users browsing this thread: 1 Guest(s)