Dialog login system problem.
#1

When login dialog appears, I type in a wrong password and it doesen't log me in. But when I just leave the password spot blank, and click log in, it logs my player into the server. So how to disable this bug?
Reply
#2

pawn Код:
if(!strval(inputtext) return //code here
this will check if player leaves the dialog blank
Reply
#3

Quote:
Originally Posted by RollTi
Посмотреть сообщение
pawn Код:
if(!strval(inputtext) return //code here
this will check if player leaves the dialog blank
^^ That won't check if the player leaves the dialog blank, that will only check if he didn't type a number, and the braces aren't even matched.

It's strlen.
pawn Код:
if(!strlen(inputtext))
{
    SendClientMessage(playerid, -1, "You have entered an empty password");
    Kick(playerid);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)