Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase Header size: 32572 bytes Code size: 3146256 bytes Data size: 96218572 bytes Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion Total requirements:99413784 bytes
#undef MAX_PLAYERS #define MAX_PLAYERS (100)
CMD:commands(playerid) {
new list[1500];
strcat(list, ...); // you put tons of text into "list"
ShowPlayerDialog(playerid, ..., list, ...);
}
/*
Now this is another way of doing things! And this way is faster too!
NOTE: you should use this only for constant texts i.e. strings/arrays that never change.
*/
CMD:commands(playerid) {
static list[1500];
if (list[0] == EOS) { // now this will only do the strcat part one time: first time when this callback is called
strcat(list, ...); // you put tons of text into "list"
}
ShowPlayerDialog(playerid, ..., list, ...);
}
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; }
I'm know that case. I put this on top of script !
Код:
#undef MAX_PLAYERS #define MAX_PLAYERS (100) Data Container Plugins look like Link list ? |