21.05.2016, 01:17
Hey, so I've got this stock that shows the available factions:
And I'd like to do it like in LSRP:
but the problem that occurs and happens it like this:
PHP код:
stock ViewFactions(playerid)
{
new string[1040];
for (new i = 0; i != MAX_FACTIONS; i ++) if (FactionData[i][factionExists]) {
//format(string, sizeof(string), "Faction ID\tFaction Name\tCurrently Online\n\%sFaction (%i) | %s\n", string, i, FactionData[i][factionName]);
format(string, sizeof(string),
"Faction ID\tName\tOnline\n\
%sFaction ID: %i\t%s\tN/A\n\
", string, i, FactionData[i][factionName]);
}
Dialog_Show(playerid, FactionsList, DIALOG_STYLE_TABLIST_HEADERS, "AVAILABLE FACTIONS", string, "CANCEL", "");
return 1;
}
but the problem that occurs and happens it like this: