passwords seems to be wrong after registering
#2

By first look this line seems wrong:
Код:
INI_WriteInt(File,"Password");
You write Password into the file, but you didn't tell it what kind of value it should be writing, so it writes nothing! At the login screen you can log in if you leave it blank because your login dialog is checking the password length.

Use this at the registering dialog:
Код:
INI_WriteInt(File,"Password",udb_hash(inputtext));
Use this at the login dialog for checking password:
Код:
if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
Have you got a saving system? I recommend you to check this guide:
https://sampforum.blast.hk/showthread.php?tid=273088
Reply


Messages In This Thread
[Y_ini]passwords seems to be wrong after registering[SOLVED] - by grymtn - 23.02.2017, 19:59
Re: passwords seems to be wrong after registering - by Awide - 23.02.2017, 20:34
Re: passwords seems to be wrong after registering - by grymtn - 23.02.2017, 20:47
Re: passwords seems to be wrong after registering - by Awide - 24.02.2017, 00:05

Forum Jump:


Users browsing this thread: 1 Guest(s)