24.03.2015, 22:39
Everytime I want to use /editfaction, I can't appear to be able to open this dialog when I choose edit ranks.
Here is the code used when the dialog is opened.
Here is the code used to open the dialog.
Here is the code used when the dialog is opened.
PHP Code:
stock ShowRankEdit(playerid)
{
new string[952];
strcat(string, "1. %s\n", FactionInfo[PlayerInfo[playerid][FactionID]][fRank1]);
strcat(string, "2. %s\n", FactionInfo[PlayerInfo[playerid][FactionID]][fRank2]);
strcat(string, "3. %s\n", FactionInfo[PlayerInfo[playerid][FactionID]][fRank3]);
strcat(string, "4. %s\n", FactionInfo[PlayerInfo[playerid][FactionID]][fRank4]);
strcat(string, "5. %s\n", FactionInfo[PlayerInfo[playerid][FactionID]][fRank5]);
strcat(string, "6. %s\n", FactionInfo[PlayerInfo[playerid][FactionID]][fRank6]);
strcat(string, "7. %s\n", FactionInfo[PlayerInfo[playerid][FactionID]][fRank7]);
strcat(string, "8. %s\n", FactionInfo[PlayerInfo[playerid][FactionID]][fRank8]);
strcat(string, "9. %s\n", FactionInfo[PlayerInfo[playerid][FactionID]][fRank9]);
strcat(string, "10. %s\n", FactionInfo[PlayerInfo[playerid][FactionID]][fRank10]);
strcat(string, "11. %s\n", FactionInfo[PlayerInfo[playerid][FactionID]][fRank11]);
strcat(string, "12. %s", FactionInfo[PlayerInfo[playerid][FactionID]][fRank12]);
ShowPlayerDialog(playerid, DAILOG_RANKEDIT, DIALOG_STYLE_LIST,"{FFFFFF}Faction Settings",string,"Select","");
return 1;
}
PHP Code:
case 0:
{
ShowRankEdit(playerid);
return 1;
}