Im about to flip.
#1

Why does this not log me in automatically ?


It did like 30 minutes ago.


pawn Код:
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_SUCCESS_2, DIALOG_STYLE_MSGBOX,""COL_WHITE"Success!",""COL_GREEN"You have successfully logged in!","Ok","");
                    SpawnPlayer(playerid);
                }
                else
                {
                    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_RED"You have entered an incorrect password.\n"COL_WHITE"Type your password below to login.","Login","Quit");
                }
                return 1;
            }
        }
    }

If you need any part of my code post here.


Thank You


Please Help Me Please
Reply
#2

If it doesn't log you in automatically, that's good, of course you don't want people who join with your name to access your account? If you want it to log you in automatically, you're going to have to get the player's IP when registering, store it in his/her's file, then when they connect check if the IP's match.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)