/Music YCMD command
#1

The server falls do the command /music

Код:
YCMD:music(playerid, params[], help)
{
	new string[4000];
	for(new i = 0; i<sizeof(MusicList); i++)
	{
	    format(string, sizeof(string), "{007FFF}%s {CCCCCC}» {007FFF}Song: {CCCCCC}%s - {007FFF}Singer: {CCCCCC}%s - {007FFF}Time: {CCCCCC}%d. {CCCCCC}«\n", string, MusicList[i][mName], MusicList[i][mSinger], MusicList[i][mTime]);
	}
	ShowPlayerDialog(playerid, DIALOG_MUSIC, DIALOG_STYLE_LIST, "~~~ Songs~~~", string, "select", "");
	return 1;
}
Reply
#2

help...
Reply
#3

Remove the "~~~~~ Songs ~~~~~" it's bad display, try it
Reply
#4

String is too High.. change it and try this codes
Код:
YCMD:music(playerid, params[], help)
{
	new string1[4000/*Comment : Change this value.*/];
	for(new i = 0; i<sizeof(MusicList); i++)
	{
	    format(string, sizeof(string), "{007FFF}%s {CCCCCC}» {007FFF}Song: {CCCCCC}%s - {007FFF}Singer: {CCCCCC}%s - {007FFF}Time: {CCCCCC}%d. {CCCCCC}«\n", string1, MusicList[i][mName], MusicList[i][mSinger], MusicList[i][mTime]);
	}
	ShowPlayerDialog(playerid, DIALOG_MUSIC, DIALOG_STYLE_LIST, "~~~ Songs~~~", string, "select", "");
	return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)