Won't kick a player
#6

Why in OnDialogResponse you check if dialogid = ADMINPIN_INPUT, but when you 'recreate' the dialog, you put ADMINPIN_DIALOG as dialogid?

pawn Код:
if(dialogid == ADMINPIN_INPUT) // <---- THIS
{
        if(!response) return Kick(playerid);
        if(!strlen(inputtext)) return ShowPlayerDialog(playerid,ADMINPIN_DIALOG/*<-- WTF?*/,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;
    }
Try adding a print there and see if its called in the first place
Reply


Messages In This Thread
Won't kick a player - by Gerira Gaijin - 18.01.2012, 23:31
Re: Won't kick a player - by [ABK]Antonio - 18.01.2012, 23:34
Re: Won't kick a player - by Gerira Gaijin - 18.01.2012, 23:52
Re: Won't kick a player - by Tannz0rz - 19.01.2012, 00:35
Re: Won't kick a player - by Gerira Gaijin - 19.01.2012, 00:40
Respuesta: Won't kick a player - by OPremium - 19.01.2012, 00:42
Re: Respuesta: Won't kick a player - by [ABK]Antonio - 19.01.2012, 01:01

Forum Jump:


Users browsing this thread: 2 Guest(s)