Login problem
#2

Код:
case DIALOG_LOGIN:
        {
            if ( !response ) return Kick ( playerid );
            if( response )
            {
                new HashPass[128];
                WP_Hash(HashPass, sizeof(HashPass), inputtext); 
                if(strcmp(WP_Hash, PlayerInfo[playerid][pPass]) == 0)// this line edited

                {
                    INI_ParseFile(UserPath(playerid), "LoadUser_data", .bExtra = true, .extra = playerid);
                    ShowPlayerDialog(playerid, DIALOG_SUCCESS_2, DIALOG_STYLE_MSGBOX,"{ff0000}Success!","{00ff66} You have successfully logged in!","Ok","");
                }
                else
                {
                    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,"{ff0000}Login","You have entered an incorrect password.\nType your password below to login.","Login","Quit");
                }
                return 1;
            }
        }
Best login/register tutorial https://sampforum.blast.hk/showthread.php?tid=273088
Reply


Messages In This Thread
Login problem - by Dziugsas - 17.05.2014, 13:01
Re: Login problem - by Rittik - 17.05.2014, 13:26

Forum Jump:


Users browsing this thread: 1 Guest(s)