06.02.2018, 04:09
Like this ?
change to
Код:
CMD:colorlist(playerid, params[]) { new id = -1; if ((PlayerData[playerid][pJob] == JOB_MECHANIC || PlayerData[playerid][pSideJob] == JOB_MECHANIC) || ((id = Biz_Nearest(playerid)) != -1 && BizInfo[id][bType] == 4)) { new string[3344]; string = ""; for(new i = 0; i < 256; i++) { if(i > 0 && (i % 16) == 0) { format(string, sizeof(string), "%s\n{%06x}#%03d ", string, g_arrSelectColors[i] >>> 8, i); } else { format(string, sizeof(string), "%s{%06x}#%03d ", string, g_arrSelectColors[i] >>> 8, i); } } Dialog_Show(playerid, ShowOnly, DIALOG_STYLE_MSGBOX, "List of Color ID's:", string, "Close", ""); } else SendClientMessage(playerid, COLOR_GRAD1, "¤ШідБидґйНВЩи·ХиµСЗб·№ЁУЛ№иТВВТ№ѕТЛ№Р"); return 1; }
Код:
CMD:colorlist(playerid, params[]) { new id = -1; if ((PlayerData[playerid][pJob] == JOB_MECHANIC || PlayerData[playerid][pSideJob] == JOB_MECHANIC) || ((id = Biz_Nearest(playerid)) != -1 && BizInfo[id][bType] == 4)) { static string[3344]; if (string[0] == EOS) { for(new i = 0; i < 256; i++) { if(i > 0 && (i % 16) == 0) { format(string, sizeof(string), "%s\n{%06x}#%03d ", string, g_arrSelectColors[i] >>> 8, i); } else { format(string, sizeof(string), "%s{%06x}#%03d ", string, g_arrSelectColors[i] >>> 8, i); } } } Dialog_Show(playerid, ShowOnly, DIALOG_STYLE_MSGBOX, "List of Color ID's:", string, "Close", ""); } else SendClientMessage(playerid, COLOR_GRAD1, "¤ШідБидґйНВЩи·ХиµСЗб·№ЁУЛ№иТВВТ№ѕТЛ№Р"); return 1; }