Quote:
Originally Posted by OPremium
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
|
if no text is input he wants them to be sent back to it to try again this time containing text