04.01.2017, 18:35
I did this command but it does not work, what should I do to show the dialog? Or rather what I did wrong?
PHP код:
CMD:flist(playerid, params[])
{
new dialogo[200], string[200];
for (new i = 0; i != MAX_FACTIONS; i ++) if (FactionData[i][factionExists])
{
format(dialogo, 128, "{FFFFFF}[%d] {%06x}%s", i, FactionData[i][factionColor] >>> 8, FactionData[i][factionName]);
strcat(string, dialogo);
}
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_LIST, "Lista de facзхes", string, "Fechar", "");
return 1;
}