17.06.2014, 21:38
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.
At the moment the dialog is showing this.
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.
any help?
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;
}
Код:
1) Machine Gun Kelly - Swing life away.
Код:
1) Machine Gun Kelly - Swing life away. 2) Linkin Park - Wastelands