PDA

View Full Version : Dialog Error :/


Yaa
04/12/2016, 07:51 PM
How the hell it's possible :o

Code :

if (strcmp(PlayerInfo[playerid][pPass], udb_hash(inputtext)))

Error :

error 035: argument type mismatch (argument 2)

o.O

Thanks in advence

Konstantinos
04/12/2016, 07:54 PM
udb_hash returns an integer. You better use SHA256_PassHash (https://wiki.sa-mp.com/wiki/SHA256_PassHash) function for hashing the passwords which includes a salt combination as well.

Yaa
04/12/2016, 07:57 PM
udb_hash returns an integer. You better use SHA256_PassHash (https://wiki.sa-mp.com/wiki/SHA256_PassHash) function for hashing the passwords which includes a salt combination as well.

There no way to evad using SHA256_PassHash ?? :/

Vince
04/12/2016, 08:03 PM
The better question is: is there no way to avoid using udb_hash? And then the answer is: yes, there is. Honestly, for any new project you should use the latest methods. Udb_hash is as old as SA-MP itself and is, despite its name, not a hashing algorithm.

Yaa
04/12/2016, 08:18 PM
Whirpool Hashing is good ? but when i used it i put any random password and proof im logged in :/