25.08.2011, 19:14
Hee all,
I made a saving system with login and register.
If my acc pass is test123 and if i fill in on login "test" the password is good.
Code:
Why it dont works?
I made a saving system with login and register.
If my acc pass is test123 and if i fill in on login "test" the password is good.
Code:
Код:
if(udb_hash(inputtext) == PlayerInfo[playerid][pPass]) { INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid); ShowPlayerDialog(playerid, DIALOG_SUCCESS_2, DIALOG_STYLE_MSGBOX,""COL_WHITE"Success!",""COL_GREEN"You have successfully logged in!","Ok",""); } else return 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");