Assistance with my system
#10

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)

Код:
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;
}
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.
Reply


Messages In This Thread
Assistance with my system - by JaydenJason - 05.08.2016, 13:09
Re: Assistance with my system - by Stinged - 05.08.2016, 13:20
Re: Assistance with my system - by JaydenJason - 05.08.2016, 13:28
Re: Assistance with my system - by kanerandyfirst - 05.08.2016, 13:35
Re: Assistance with my system - by Stinged - 05.08.2016, 13:37
Re: Assistance with my system - by Konstantinos - 05.08.2016, 13:37
Re: Assistance with my system - by JaydenJason - 05.08.2016, 13:54
Re: Assistance with my system - by Stinged - 05.08.2016, 14:03
Re: Assistance with my system - by JaydenJason - 05.08.2016, 14:06
Re: Assistance with my system - by Stinged - 05.08.2016, 14:09

Forum Jump:


Users browsing this thread: 2 Guest(s)