Problem with strcmp
#5

Try it.
Код:
if(dialogid == DIALOG_LOGIN)
        {
            if(!response) return Kick(playerid); //
            if(response) //
            {//
                new hashpass[129]; //
                WP_Hash(hashpass,sizeof(hashpass),inputtext); 
                if(hashpass==PlayerInfo[playerid][Pass]) //try out this
                {//then
                    INI_ParseFile(UserPath(playerid),"loadaccount_%s",.bExtra = true, .extra = playerid);
                    SetPlayerScore(playerid,PlayerInfo[playerid][Score]);//
                    GivePlayerMoney(playerid,PlayerInfo[playerid][Cash]);
                    SendClientMessage(playerid,-1,"Welcome back! You have successfully logged in");//
                 
                }
                else //
                {//
                    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login","Welcome back. This account is registered. \nInsert your password to login to your account.\nIncorrect password!","Login","Quit");//We will tell to them that they've entered an incorrect password
                    return 1;
                }
            }
            return 1;
        }
Reply


Messages In This Thread
Problem with strcmp - by verlaj - 27.05.2014, 05:56
Re: Problem with strcmp - by Rittik - 27.05.2014, 06:06
Re: Problem with strcmp - by verlaj - 27.05.2014, 06:15
Re: Problem with strcmp - by Rittik - 27.05.2014, 06:18
Re: Problem with strcmp - by Rittik - 27.05.2014, 07:46
Re: Problem with strcmp - by verlaj - 27.05.2014, 08:01
Re: Problem with strcmp - by iZN - 27.05.2014, 08:01
Re: Problem with strcmp - by Jack_Leslie - 27.05.2014, 08:07
Re: Problem with strcmp - by verlaj - 27.05.2014, 08:12

Forum Jump:


Users browsing this thread: 3 Guest(s)