18.12.2016, 10:28
Hey guys
I have a problem when the player throws dialogue for registration and if he does not uupise not only compresses it yarn enter the login and I put this to isnul and !Strlen or does not help. Does anyone know what the problem is
I have a problem when the player throws dialogue for registration and if he does not uupise not only compresses it yarn enter the login and I put this to isnul and !Strlen or does not help. Does anyone know what the problem is
Код:
fDialog(1246) { if(!response) return Kick(playerid); if(response) { if(isnull(inputtext)) { new regstring[180]; format(regstring, sizeof(regstring), "%s .....", GetName(playerid)); ShowPlayerDialog(playerid, 1246, DIALOG_STYLE_PASSWORD, "Register", regstring, "Register", "Exit"); } else if(strlen(inputtext) < 6 || strlen(inputtext) > 20) { new regstring[180]; format(regstring, sizeof(regstring), "%s .....", GetName(playerid)); ShowPlayerDialog(playerid, 1246, DIALOG_STYLE_PASSWORD, "Register", regstring, "Register", "Exit"); } else if(strfind(inputtext, "%") != -1) { new regstring[180]; format(regstring, sizeof(regstring), "%s .....", GetName(playerid)); ShowPlayerDialog(playerid, 1246, DIALOG_STYLE_PASSWORD, "Register", regstring, "Register", "Exit"); } else { OnPlayerRegister(playerid, inputtext); } } return 1; }