I have a question!
#7

use UDB Hash
pawn Код:
/*Credits to Dracoblue*/
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;
}
This forum requires that you wait 120 seconds between posts. Please try again in 13 seconds.
Reply


Messages In This Thread
I have a question! - by dundolina - 24.07.2012, 19:02
Re: I have a question! - by EV007 - 24.07.2012, 19:04
Re: I have a question! - by dundolina - 24.07.2012, 19:11
Re: I have a question! - by ViniBorn - 24.07.2012, 19:27
Re: I have a question! - by electrux - 24.07.2012, 19:42
Re: I have a question! - by dundolina - 24.07.2012, 20:06
Re: I have a question! - by Rudy_ - 24.07.2012, 20:08
Re: I have a question! - by dundolina - 24.07.2012, 20:48
Re: I have a question! - by Rudy_ - 24.07.2012, 20:52
Re: I have a question! - by dundolina - 24.07.2012, 22:34

Forum Jump:


Users browsing this thread: 1 Guest(s)