Login problem
#1

I have a problem with YINI. I can login with any password I type.
pawn Код:
if(dialogid == dlogin)
    {
        if(!response) return Kick(playerid);
        if(response)
        {
            new hpass[129];
            WP_Hash(hpass,sizeof(hpass),inputtext);
            if(!strcmp(hpass,pInfo[playerid][Pass]))
            {
                INI_ParseFile(Path(playerid),"loadaccount",true,true,playerid);
                SetPlayerScore(playerid,pInfo[playerid][DMScore]+pInfo[playerid][RaceScore]);
            }
            else
            {
                ShowPlayerDialog(playerid,dlogin,DIALOG_STYLE_INPUT,"Login","This account is registered. \nPlease enter the password for this account to login. \nIncorrect Password!","Login","Quit");
                return 1;
            }
        }
    }
And if I remove ' ! '
pawn Код:
if(!strcmp(hpass,pInfo[playerid][Pass]))
// to
if(strcmp(hpass,pInfo[playerid][Pass]))
//I can't even login
Reply


Messages In This Thread
Login problem - by newbienoob - 08.06.2012, 19:19
Re: Login problem - by newbienoob - 10.06.2012, 11:25
Re: Login problem - by Dodo9655 - 10.06.2012, 11:38
Re: Login problem - by JaKe Elite - 10.06.2012, 12:06
Re: Login problem - by newbienoob - 10.06.2012, 12:06
Re: Login problem - by Littlehelper - 10.06.2012, 12:25
Re: Login problem - by newbienoob - 10.06.2012, 12:35
Re : Login problem - by ricardo178 - 10.06.2012, 13:34
Re: Login problem - by Littlehelper - 10.06.2012, 13:37
Re: Login problem - by newbienoob - 10.06.2012, 13:58
Re: Login problem - by newbienoob - 10.06.2012, 17:55
Re: Login problem - by Forman - 12.06.2012, 11:36

Forum Jump:


Users browsing this thread: 1 Guest(s)