31.10.2017, 13:31
hello there!, i have the next error in my code. when you login in an account if you press enter (if you don't put any letter, if you let a white space) will let that you enter in this account... then i have been triying resolve this problem but, i haven't got success.
how you can see i try to create a variable string named sblank to compare with the inputtext, but it don't worked
Код:
case LOGIN: { if(!response) { Kick(playerid); } new sblank[] = ""; if(strcmp(sblank, inputtext)) { SendClientMessage(playerid, -1, "[TNW] write your mail"); format(string, sizeof(string), "[TNW] Error complete the space."); ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "mail:",string,"next", "exit"); } else {*/ if(strcmp(PlayerInfo[playerid][mail], inputtext, true, 129) == 0) { format(string, sizeof(string), "[TNW] write your pass"); ShowPlayerDialog(playerid, LOGIN2, DIALOG_STYLE_PASSWORD,"contraseсa:",string,"next","exit"); } else { SendClientMessage(playerid, -1, "[TNW] Error incorrect mail."); format(string, sizeof(string), "[TNW] Error invalid mail."); ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "mail:",string,"next", "exit"); } }