[HELP]whirlpool
#1

hello as my first topic was about the same problem in a different way I did something new in da dudb include and hashing, but I got some errors I hope this thing can work
my code:

pawn Код:
stock udb_CheckLogin(nickname[],pwd[]) {
  new fname[MAX_STRING], hashpass[129];
  WP_Hash(hashpass,sizeof(hashpass),pwd);
  format(fname,sizeof(fname),"SFTDM/Users/%s.sav",udb_encode(nickname));
  if (udb_UserInt(nickname,"password_hash")==hashpass) return true;
  return false;
}


stock udb_Create(nickname[],pwd[]) {
  if (udb_Exists(nickname)) return false;
  new fname[MAX_STRING], hashpass[129];
  WP_Hash(hashpass,sizeof(hashpass),pwd);
  format(fname,sizeof(fname),"SFTDM/Users/%s.sav",udb_encode(nickname));
  dini_Create(fname);
  udb_UserSetInt(nickname,"password_hash",hashpass);
  return true;
}
ma errors

PHP код:
blabla\include\dudb.inc(141) : error 033: array must be indexed (variable "hashpass")
blabla\include\dudb.inc(152) : error 035argument type mismatch (argument 3
Reply


Messages In This Thread
[HELP]whirlpool - by KillerStrike23 - 07.07.2014, 21:57
Re : [HELP]whirlpool - by S4t3K - 07.07.2014, 23:20
Re: [HELP]whirlpool - by Threshold - 07.07.2014, 23:27
Re : [HELP]whirlpool - by S4t3K - 07.07.2014, 23:29
Re: [HELP]whirlpool - by Threshold - 07.07.2014, 23:33

Forum Jump:


Users browsing this thread: 1 Guest(s)