Incorrect Password.
#2

Always use debugs on this cases, printf

Try to debug both the hashed inputtext and player password, if they are not the same it means that something wrong.

Also, You need to use strcmp in comparing strings not == you're not comparing integers.

pawn Код:
if (response)
            {
                if( !strcmp(udb_hash(inputtext) ) , PlayerInfo[playerid][pPass] ) && strlen(inputtext) > 0)
                {
                    INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                    SendClientMessage(playerid, -1, "You Have Been Succesfully Logged In.");
                }
                else
                {
                    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"Login","You have entered an incorrect password.\nType your password below to login.","Login","Quit");
                }
                return 1;
            }
Reply


Messages In This Thread
Incorrect Password. - by danish007 - 11.07.2015, 22:40
Re: Incorrect Password. - by SilentSoul - 11.07.2015, 22:45
Re: Incorrect Password. - by danish007 - 11.07.2015, 22:58
Re: Incorrect Password. - by SilentSoul - 11.07.2015, 23:09
Re: Incorrect Password. - by danish007 - 11.07.2015, 23:13
Re: Incorrect Password. - by SilentSoul - 11.07.2015, 23:24
Re: Incorrect Password. - by danish007 - 11.07.2015, 23:31
Re: Incorrect Password. - by Threshold - 11.07.2015, 23:37
Re: Incorrect Password. - by SilentSoul - 11.07.2015, 23:38
Re: Incorrect Password. - by danish007 - 12.07.2015, 13:16

Forum Jump:


Users browsing this thread: 2 Guest(s)