13.02.2017, 01:40
Try this :
It hasn't really changed anything but I guess that way the dialog where you input the reason and unwarn the person "DIALOG_LLIST5" won't even be called.
Код:
if(listitem == 3) { if(PlayerInfo[playerid][pAdmin] > 5) { if(PlayerInfo[playerid][pLeaderWarn] == 0) return SendClientMessage(playerid,COLOR_ERROR,"That leader has no warns!"); else { format(strings, sizeof(strings), "{FFFFFF}Type the reason why you want to unwarn this guy %s.", PlayerInfo[playerid][pSelected]); ShowPlayerDialog(playerid, DIALOG_LLIST5, DIALOG_STYLE_INPUT, "Next", strings, "Done", "Cancel"); } } else return SendClientMessage(playerid,COLOR_ERROR,"You need to be owner to use this menu!"); }