Login script allows any password
#16

OMG you must return false; not true...
here:
Код:
if(!strlen(inputtext)) 
    { 
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, ""WHITE"Login",""RED"You have entered an invalid password.\n"WHITE"Type your password below to login.","Login","Quit"); 
        return 1; 
    }
and here:
Код:
 if(strcmp(inputtext,PlayerInfo[playerid][Pass],false)) 
        { 
            ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, ""WHITE"Login",""RED"You have entered an incorrect password.\n"WHITE"Type your password below to login.","Login","Quit"); 
            return 1; 
        }
also you can return ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, ""WHITE"Login",""RED"You have entered an incorrect password.\n"WHITE"Type your password below to login.","Login","Quit"); without returning false...
Reply


Messages In This Thread
Login script allows any password - by slymatt - 18.07.2011, 09:09
Re: Login script allows any password - by Bakr - 18.07.2011, 09:12
Re: Login script allows any password - by _Aleksandar - 18.07.2011, 09:12
Re: Login script allows any password - by slymatt - 18.07.2011, 09:16
Re: Login script allows any password - by Bakr - 18.07.2011, 09:20
Re: Login script allows any password - by slymatt - 18.07.2011, 09:23
Re: Login script allows any password - by FireCat - 18.07.2011, 09:30
Re: Login script allows any password - by System64 - 18.07.2011, 09:30
Re: Login script allows any password - by Bakr - 18.07.2011, 09:32
Re: Login script allows any password - by slymatt - 18.07.2011, 09:32
Re: Login script allows any password - by MoroDan - 18.07.2011, 09:34
Re: Login script allows any password - by slymatt - 18.07.2011, 09:34
Re: Login script allows any password - by slymatt - 18.07.2011, 09:40
Re: Login script allows any password - by slymatt - 18.07.2011, 16:09
Re: Login script allows any password - by iggy1 - 18.07.2011, 16:38
Re: Login script allows any password - by _Aleksandar - 18.07.2011, 16:39
Re: Login script allows any password - by slymatt - 18.07.2011, 16:46
Re: Login script allows any password - by slymatt - 18.07.2011, 16:51
Re: Login script allows any password - by Jofi - 18.07.2011, 17:49
Re: Login script allows any password - by slymatt - 18.07.2011, 21:38
Re: Login script allows any password - by tbedy - 19.07.2011, 09:33

Forum Jump:


Users browsing this thread: 1 Guest(s)