11.05.2013, 20:31
Hello everyone I've got some problems with how the title says "PASSWORD SAVING" Heres the code
I use pLozinka for my password variable and when i register everything is ok but when i relog and login again it says wrong password every time and i cant log in, now can u guys just tell me what am I doing wron and yeah in folder Users where is my users documents u know for everyone password is 0 HELP HELP HELP
Код:
if(dialogid == DIALOG_LOGIN1) { if(!response ) return Kick (playerid); if(response) { if(udb_hash(inputtext) == PlayerInfo[playerid][pLozinka]) { INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid); SpawnPlayer(playerid); ResetPlayerMoney(playerid); GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]); } else { ShowPlayerDialog(playerid, DIALOG_LOGIN2, DIALOG_STYLE_INPUT,"{FFFF00}LifeZone RolePlay","Uneli ste pogresnu lozinku.\nUnesite tacnu lozinku da se logujete.","Login","Quit"); } } }
