Quote:
Originally Posted by JaTochNietDan
Quote:
Originally Posted by KyleSmith
I am trying to intergrate Dracoblues login system to work with ShowPlayerDialog
So when your password is typed in the box it logs you in
Ive tried
Quote:
if(dialogid == 1 && response == 1)
{
if(udb_UserInt(nickname,"password_hash")==udb_hash (pwd))
{
}
}
|
But that dont work
Here is the stock to check the password
Quote:
stock udb_CheckLogin(nickname[],pwd[]) {
new fname[MAX_STRING];
format(fname,sizeof(fname),"%s.dudb.sav",udb_encod e(nickname));
if (udb_UserInt(nickname,"password_hash")==udb_hash(p wd)) return true;
return false;
}
|
Thankss
|
"pwd" isn't defined in "OnDialogResponse".
Use udb_hash(inputtext) instead.
Also, neither is "nickname", so define that also.
|
After some hours i managed to make it work thanks alot JaTochNietDan