SA-MP Forums Archive
Dialog Error :/ - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dialog Error :/ (/showthread.php?tid=623751)



Dialog Error :/ - Yaa - 04.12.2016

How the hell it's possible

Code :

PHP код:
if (strcmp(PlayerInfo[playerid][pPass], udb_hash(inputtext))) 
Error :

PHP код:
error 035argument type mismatch (argument 2
o.O

Thanks in advence


Re: Dialog Error :/ - Konstantinos - 04.12.2016

udb_hash returns an integer. You better use SHA256_PassHash function for hashing the passwords which includes a salt combination as well.


Re: Dialog Error :/ - Yaa - 04.12.2016

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
udb_hash returns an integer. You better use SHA256_PassHash function for hashing the passwords which includes a salt combination as well.
There no way to evad using SHA256_PassHash ?? :/


Re: Dialog Error :/ - Vince - 04.12.2016

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.


Re: Dialog Error :/ - Yaa - 04.12.2016

Whirpool Hashing is good ? but when i used it i put any random password and proof im logged in :/