Quote:
Originally Posted by IceCube!
Right this might be a bit annoying for you but i dont have a clue what WP_Hash is so i cant really help but i may be able to help if you change your stock to udb_hash
If you are willing to do this replace the WP_Hash stock with
pawn Код:
stock udb_hash(buf[]) { new length=strlen(buf); new s1 = 1; new s2 = 0; new n; for (n=0; n<length; n++) { s1 = (s1 + buf[n]) % 65521; s2 = (s2 + s1) % 65521; } return (s2 << 16) + s1; }
and replace
this
pawn Код:
if(WP_Hash(hashPassword, 129, password) == PlayerInfo[playerid][pPassword])
with this
pawn Код:
if(udb_hash(inputtext) == PlayerInfo[playerid][pPassword])
and this
pawn Код:
WP_Hash(hashPassword, 129, password); INI_WriteString(playerFile, "Password", hashPassword);
with this
pawn Код:
INI_WriteInt(File,"Password",udb_hash(inputtext));
and so on sorry but i dont know the things for WP and i cant find anything about it
also ****** has his own tutorial?
or you can wait for somone else to reply... (who understands WP_Hash)
also i found a better tutorial for you if this helps
https://sampforum.blast.hk/showthread.php?tid=273088
EDIT: Youve replyed to this tutorial... im guessing this isnt the one you used or is it?
|
I never used that tutorial nope, I tried what you told me to do, then tried the tutorial, it still didn't work. I'll have to re-do my registration system, then I'll let you know, thanks