11.07.2014, 20:16
(
Последний раз редактировалось Facerafter; 11.07.2014 в 21:10.
)
I have this in OnDialogResponse.
But It simply does nothing.
But It simply does nothing.
pawn Код:
if(dialogid == 20016)
{
if(response)
{
new string[128], id;
if(sscanf(inputtext,"u", id)) return ShowPlayerDialog(playerid, 20016, DIALOG_STYLE_INPUT, "Helper Menu - Remove Warning","For which player do you want to remove a warning?\n{FF0606}Please enter a valid ID below!" , "Enter", "Cancel");
PlayerInfo[Helping[playerid]][pNWarns] --;
format(string, sizeof(string), "HelperWarn: %s has remove warning from %s he now has %d warnings.", RPN(id), PlayerInfo[id][pNWarns]);
SendHelperMessage(COLOR_REPORT, 1, string);
format(string, sizeof(string), "A helper has removed one of your warning, you now have %d warnings.", PlayerInfo[id][pNWarns]);
SendClientMessage(Helping[playerid], COLOR_WHITE, string);
}
}
pawn Код:
ShowPlayerDialog(playerid, 20016, DIALOG_STYLE_INPUT, "Helper Menu - Remove Warning", "For which player do you want to remove a warning?\nPlease enter a ID below.","Remove", "Cancel");