13.02.2017, 01:08
hey guys i have a dialog a working one..
i have a meniu like Ban-Kick-Warn-Unwarn so i did everything like i said is working but i have a problem when i select Unwarn and the player have 0 Warns should give to me a message like "This player has no warns" i did this but why isn't working :-s ?
full code from first dialog after selecting "Unwarn"
EDIT: if the selected player has 0 warns and i try to unwarn him it goes like -1, -2, etc...
i have a meniu like Ban-Kick-Warn-Unwarn so i did everything like i said is working but i have a problem when i select Unwarn and the player have 0 Warns should give to me a message like "This player has no warns" i did this but why isn't working :-s ?full code from first dialog after selecting "Unwarn"
Код HTML:
if(listitem == 3)
{
if(PlayerInfo[playerid][pAdmin] > 5)
{
if(PlayerInfo[playerid][pLeaderWarn] >= 1)
{
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,"That leader has no warns!");
}
else return SendClientMessage(playerid,COLOR_ERROR,"You need to be owner to use this menu!");
}

