05.08.2016, 14:09
Oh sorry I just re-read it carefully. I mixed up a bit because of the "List Faction", didn't think of it as an option, but instead a title (Stupid thing to do)
Adding the option to create or edit factions doesn't need the player's faction name (Which can be id -1)
You're only using 1 %s, and that's for the List Faction (If the player doesn't have a faction)
So I just removed the fData part that.
Код:
CMD:factions(playerid, params[]) { new str[200]; format(str, sizeof(str), "List Factions\n"); if(pData[playerid][pFaction] >= 0) { format(str, sizeof(str), "%sList %s's Members\n", str, fData[pData[playerid][pFaction]][fName]); if(pData[playerid][pFactionRank] >= fData[pData[playerid][pFaction]][fManageRank]) { format(str, sizeof(str), "%sManage %s's Members\n", str, fData[pData[playerid][pFaction]][fName]); } } if(pData[playerid][pAdmin] > 1) { format(str, sizeof(str), "%sCreate Faction\nEdit Faction", str); } ShowPlayerDialog(playerid, DIALOG_FACTION_MAIN, DIALOG_STYLE_LIST, "Faction Control Panel", str, "Select", "Cancel"); return 1; }
You're only using 1 %s, and that's for the List Faction (If the player doesn't have a faction)
So I just removed the fData part that.