Register System Help - 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: Register System Help (
/showthread.php?tid=412765)
[SOLVED] Register System Help -
Deathlane - 03.02.2013
Hello guys, I have some problems with my login code. I don't know why, but it really can't be fixed by me.
So, let me explain the problem.
When I login, then I enter my password, it always allow me to login, even without putting the correct pass.
pawn Код:
new string[256];
WP_Hash(string, sizeof(string), inputtext);
//if(!strcmp(string, PlayerData[playerid][pPassword]))
//if(strcmp(PlayerData[playerid][pPassword], string, true) == 0)
I'm using y_ini and Whirlpool.
Kindly help me as soon as possible! Thank you!
Re: Register System Help -
Bakr - 03.02.2013
Could you show the lines where you load the password into the pPassword variable?
Also, Whirlpool only needs a buffer with 129 len. You should be checking that the 'ignore_case' argument talks false, unless your system puts all passwords to lowercase or uppercase prior.
Re: Register System Help -
Deathlane - 03.02.2013
Never mind, thanks anyways. I fixed this.
I used udb instead of Whirlpool, thanks to Kush's tutorial.
Re: Register System Help -
JaKe Elite - 03.02.2013
That wouldn't solve your problem.
Look, udb is bad idea. ****** said it.
If you're using newbienoob's tutorial go look at the ending of the topic.
You will see the solution for it.