Register system
#5

Код:
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;
}
remove *-*
Reply


Messages In This Thread
Register system - by Bug. - 07.10.2012, 15:58
Re: Register system (+Rep). - by Bug. - 07.10.2012, 16:00
Re: Register system (+Rep). - by HyDrAtIc - 07.10.2012, 16:02
Re: Register system (+Rep). - by ikbenremco - 07.10.2012, 16:38
Re : Register system (+Rep). - by yusei - 07.10.2012, 16:43
Re: Register system - by Bug. - 08.10.2012, 12:51
Re: Register system, How to fix it? - by Bug. - 08.10.2012, 13:11
Re: Register system - by Bug. - 08.10.2012, 13:52
Re: Register system - by Bug. - 08.10.2012, 14:44

Forum Jump:


Users browsing this thread: 1 Guest(s)