28.08.2014, 20:15
pawn Код:
case EDITFACTION_FACID:
{
new string[256];
if(!response)
{
SendClientMessage(playerid, -1, "Your no longer going to edit a faction.");
return 1;
}
else {
if(strval(inputtext) < 0 || strval(inputtext) > 9) return SendClientMessage(playerid, -1, "SERVER: Invalid Faction ID.");
format(string, sizeof(string), "Your entering faction ID: %s", inputtext);
SendClientMessage(playerid, -1, string);
PlayerInfo[playerid][EditFaction] = strval(inputtext);
ShowPlayerDialog(playerid, EDITFACTION_OPTIONS, DIALOG_STYLE_LIST, "Select a Option", "Name", "Select", "Quit");
}
}