[+REP] Y_INI Password help
#1

Ok, Im making a filterscript, that has passwords in it. And im hashing them using udb_hash.
Here's my problem. The file saves correctly, the password is hashed, but how do i check to see if they entered the correct password using Y_INI?

The password is dynamic, and can be changed with a command IG. So, after you change it, store it in the file, and then when it comes time to be entered, how can i check if they entered the right one?

+REP for the best answer!
Reply
#2

hash the one they entered
compare with the entered pass[hashed] and the one from the ini file

if (hashsedpass == inipass)
pawn Код:
if(udb_hash(inputtext) == aPlayerInfo[playerid][pPass])
Reply
#3

Quote:
Originally Posted by Jonny5
Посмотреть сообщение
hash the one they entered
compare with the entered pass[hashed] and the one from the ini file

if (hashsedpass == inipass)
pawn Код:
if(udb_hash(inputtext) == aPlayerInfo[playerid][pPass])
Uhm. That didnt help. Ive already dont all of that. But when i check to see if its the right one, it doesnt work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)