Dialog help, It's showing only 1 song.
#1

Ok so my dialog Is only showing one song but I want it so show all of them not only the first one. Here's the command.

pawn Код:
COMMAND:music(playerid, params[])
{
    if(MusicInfo[0][Song] == 0) return SendClientMessage(playerid,COLOR_LIGHTRED,"Error: Server can't find any music.");
    {
        for(new i = 0; i < MAX_SERVERMUSIC;i++)
        {
            new string[128];
            format(string, sizeof(string), "%i) %s\n", i+1,MusicInfo[i][SongName]);
            ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Music Player", string, "Play", "Cancel");
            return 1;
        }
    }
    return 1;
}
At the moment the dialog is showing this.

Код:
1) Machine Gun Kelly - Swing life away.
So that show's if a player has only 1 song but if a player add's an other song it will show them both like this.

Код:
1) Machine Gun Kelly - Swing life away.
2) Linkin Park - Wastelands
any help?
Reply


Messages In This Thread
Dialog help, It's showing only 1 song. - by jueix - 17.06.2014, 21:38
Re: Dialog help, It's showing only 1 song. - by Konstantinos - 17.06.2014, 21:43
Re: Dialog help, It's showing only 1 song. - by jueix - 17.06.2014, 21:51
Re: Dialog help, It's showing only 1 song. - by Threshold - 18.06.2014, 02:49

Forum Jump:


Users browsing this thread: 2 Guest(s)