Login problem
#5

Still not working.

Quote:
Originally Posted by Romel
Посмотреть сообщение
are you Parsing the file before using pInfo[playerid][Pass]?
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], true) == 0)
            {
                INI_ParseFile(Path(playerid),"loadaccount",.bExtra = true, .extra = playerid);
                SetPlayerScore(playerid,pInfo[playerid][DMScore]+pInfo[playerid][RaceScore]);
                SetPlayerScore(playerid,pInfo[playerid][DMScore]);
                SetPlayerScore(playerid,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;
            }
        }
    }
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)