Whirlpool - Argument type mismatch (argument 1) - 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: Whirlpool - Argument type mismatch (argument 1) (
/showthread.php?tid=518982)
Whirlpool - Argument type mismatch (argument 1) -
Stinged - 12.06.2014
Hello. I've never tried scripting a SQLite registration system, so I was following a tutorial made by Konstantinos.
After I finished everything, I had one error with Whirlpool.
"(142) : error 035: argument type mismatch (argument 1)"
pawn Код:
new hashedpass[129];
WP_Hash(hashedpass, 129, inputtext); // Line 142
So can anyone tell me where's the problem?
Re: Whirlpool - Argument type mismatch (argument 1) -
Rittik - 12.06.2014
Код:
WP_Hash(hashedpass, sizeof(hashedpass), inputtext);
Re: Whirlpool - Argument type mismatch (argument 1) -
Stinged - 12.06.2014
Doesn't make any difference.
Re: Whirlpool - Argument type mismatch (argument 1) -
Laure - 12.06.2014
Where are you hashing the password, in the login after registration or directly after registering?
Re: Whirlpool - Argument type mismatch (argument 1) -
Threshold - 12.06.2014
Do you have the correct native at the top of your script?
pawn Код:
native WP_Hash(buffer[], len, const str[]);
Re: Whirlpool - Argument type mismatch (argument 1) -
Stinged - 12.06.2014
I do.
EDIT: Oh god... Simple error... Fixed, sorry.