26.03.2014, 11:26
pawn Код:
case DIALOG_F_P_RANK:
{
if(response)
{
new edt = Editing[playerid];
new rankedt = RankEditing[playerid];
if(!strlen(inputtext))
return ShowPlayerDialog(playerid, DIALOG_F_EDITNAME,DIALOG_STYLE_INPUT,"{00c982}FACTION EDIT","{b7ba00}New rank name {ff0000}{You need to actually fill it out!):","Set","Cancel");
format(FactionRank[edt][rankedt], sizeof(FactionRank[edt][rankedt]),"%s",inputtext);
SaveFaction(Editing[playerid]);
}
else
ShowPlayerDialog(playerid, DIALOG_F_EDIT, DIALOG_STYLE_LIST, "{00c982}FACTION EDIT", "Faction name\nFaction Type\nFaction default skin\nFaction ranks\nFaction leader rank\nFaction duty position", "Continue", "Cancel");
}