Login OnPlayerConnect
#4

1.
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;
}
2.You have declared the variable "string" but never used, so delete it.
Reply


Messages In This Thread
Login OnPlayerConnect - by Kostas' - 17.10.2011, 14:52
Re: Login OnPlayerConnect - by nilanjay - 17.10.2011, 14:59
Re: Login OnPlayerConnect - by Kostas' - 17.10.2011, 15:04
Re: Login OnPlayerConnect - by SmiT - 17.10.2011, 15:10
Re: Login OnPlayerConnect - by Kostas' - 17.10.2011, 15:29
Re: Login OnPlayerConnect - by nilanjay - 17.10.2011, 15:32
Re: Login OnPlayerConnect - by Kostas' - 17.10.2011, 15:48

Forum Jump:


Users browsing this thread: 2 Guest(s)