SA-MP Forums Archive
/Music YCMD command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /Music YCMD command (/showthread.php?tid=575785)



/Music YCMD command - IlaiBenShuShan - 30.05.2015

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;
}



Re: /Music YCMD command - IlaiBenShuShan - 31.05.2015

help...


Re: /Music YCMD command - amirm3hdi - 31.05.2015

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


Re: /Music YCMD command - fuckingcruse - 31.05.2015

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;
}