Help with password checking.
#7

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
Reply


Messages In This Thread
Help with password checking. - by Jack_Leslie - 30.08.2011, 00:53
Re: Help with password checking. - by IceCube! - 30.08.2011, 01:04
Re: Help with password checking. - by Jack_Leslie - 30.08.2011, 01:08
Re: Help with password checking. - by IceCube! - 30.08.2011, 01:11
Re: Help with password checking. - by Jack_Leslie - 30.08.2011, 01:14
Re: Help with password checking. - by IceCube! - 30.08.2011, 01:27
Re: Help with password checking. - by Jack_Leslie - 30.08.2011, 01:36
Re: Help with password checking. - by IceCube! - 30.08.2011, 01:43
Re: Help with password checking. - by Jack_Leslie - 30.08.2011, 01:45
Re: Help with password checking. - by IceCube! - 30.08.2011, 01:48

Forum Jump:


Users browsing this thread: 2 Guest(s)