18.01.2012, 23:31
When a player types a wrong password, he doesn't gets kicked. What am I doing wrong?
pawn Код:
if(dialogid == ADMINPIN_INPUT){
if(!response) return Kick(playerid);
if(!strlen(inputtext)) return ShowPlayerDialog(playerid,ADMINPIN_DIALOG,DIALOG_STYLE_INPUT,"Enter administrator PIN","Please enter your administration PIN number:","Confirm","");
if(strlen(inputtext) > 32) return ShowPlayerDialog(playerid,ADMINPIN_DIALOG,DIALOG_STYLE_INPUT,"Enter administrator PIN","Please enter your administration PIN number:","Confirm","");
if(strcmp(inputtext, pInfo[playerid][pAdminPIN], false)) return Kick(playerid);
return 1;
}