SA-MP Forums Archive
udb_hash 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: udb_hash help (/showthread.php?tid=160068)



udb_hash help - Ironboy500[TW] - 15.07.2010

Hello! I need a little help with udb_hash.

I got udb_hash defined in pawno and using it for my register and log in system in server.

Код:
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;
}
I am currently working on login system on my website and I need udb_hash for PHP so I can make users login with their ingame account.

Can you help me with udb_hash for PHP?

I really need that cuz all my accounts are saved with udb_hashed password.

Thanks!


Re: udb_hash help - Ironboy500[TW] - 16.07.2010

Shit, no help.


Re: udb_hash help - tjying95 - 31.10.2010

Wanna me help u again? :P