Wrong Password
#1

Hello guys. I've been trying to make a Register system but i failed, so i decied to take a look if i find a Simple one with y_ini.

So, i have the Register system everything works perfect, but when a play joins, and he's registered he needs to enter his password. The problem is that the player is registered, but if his password is "lol" and he enters "in", he'll get logged it. So the password don't match, you can any password you want and you're logged in..

Код:
        case DIALOG_LOGIN:
        {
            if ( !response ) return Kick ( playerid );
            if( response )
            {
                if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
                {
                    INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                    GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
					ShowPlayerDialog(playerid, DIALOG_TEAM_SELECT, DIALOG_STYLE_LIST,"{FF0000}Select a Team","{FFFFFF}Germany \nRussia ","Select", "Close");
                }
                else
                {
                    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "{FF0000}Error","{FFFFFF}You have entered an incorrect password.","Confirm","Leave");
                }
                return 1;
            }
		}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)