Dialog won't show on spawn
#5

Okay, it worked. But now it won't kick a player if he types in a wrong password :/

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;
    }
Reply


Messages In This Thread
Dialog won't show on spawn - by Gerira Gaijin - 17.01.2012, 21:36
Re: Dialog won't show on spawn - by Gerira Gaijin - 18.01.2012, 10:21
Re: Dialog won't show on spawn - by thimo - 18.01.2012, 13:56
Re: Dialog won't show on spawn - by mineralo - 18.01.2012, 14:28
Re: Dialog won't show on spawn - by Gerira Gaijin - 18.01.2012, 21:43

Forum Jump:


Users browsing this thread: 1 Guest(s)