18.04.2013, 04:44
I have also added
and
Код:
#define DIALOG_MUSICPLAYER 1
Код:
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; }