Problem with Y_INI Login/Register
#4

Try this maybe?

pawn Код:
if(dialogid == L_DIALOG)
   {
      if(!response) return Kick(playerid);
      else if(response)
      {
        new HashPass[129];
        WP_Hash(HashPass, sizeof(HashPass), inputtext);
        INI_ParseFile(UserAccount(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
        if(!strcmp(PlayerInfo [ playerid ] [ pPass ] , HashPass , true ))
        {
            INI_ParseFile(UserAccount(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
            GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
            SetPlayerScore(playerid, PlayerInfo[playerid][pScores]);
        }
        else
        {
            ShowPlayerDialog(playerid, L_DIALOG, DIALOG_STYLE_PASSWORD,""cwhite"Login",""cred"You have entered an incorrect password.\n"cwhite"Type your password below to login.","Login","");
        }
      }
   }
   return 1;
}
You are comparing pPass to the player's inputtext. Did you format the pPass variable with the player's password?
Reply


Messages In This Thread
[Fixed] - by Jarnu - 27.10.2012, 04:06
Re: Problem with Y_INI Login/Register - by JaKe Elite - 27.10.2012, 04:08
Re: Problem with Y_INI Login/Register - by Jarnu - 27.10.2012, 04:10
Re: Problem with Y_INI Login/Register - by Emmet_ - 27.10.2012, 04:11
Re: Problem with Y_INI Login/Register - by Lordzy - 27.10.2012, 04:17
Re: Problem with Y_INI Login/Register - by Jarnu - 27.10.2012, 04:18
Re: Problem with Y_INI Login/Register - by Lordzy - 27.10.2012, 04:29
Re: Problem with Y_INI Login/Register - by Jarnu - 27.10.2012, 04:52
Re: Problem with Y_INI Login/Register - by [HK]Ryder[AN] - 27.10.2012, 05:08

Forum Jump:


Users browsing this thread: 1 Guest(s)