03.06.2017, 23:50
Just loop through the factions?
Try that?
Edit: Didn't read that you solved!!!
PHP код:
stock ShowFactions(playerid)
{
new string[256];
string[0] = EOS;
for(new i = 1; i < sizeof(DynamicFactions); i++){
if(DynamicFactions[i][fApplication] > 0){
format(string, sizeof(string), "%s{FFFFFF}[%d/%d] %s\n", string, GetFactionMembers(i), DynamicFactions[i][fMaxMembers], DynamicFactions[i][fName]);
}
}
ShowPlayerDialog(playerid, DIALOG_FACTIONS, DIALOG_STYLE_LIST, "Factions", string, "Select", "Cancel");
return 1;
}
Edit: Didn't read that you solved!!!