[Ajuda] Erro hash
#2

tenta usar esta stock

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;
}
Reply


Messages In This Thread
Erro hash - by shittt - 25.08.2013, 19:47
Re: Erro hash - by PT - 25.08.2013, 20:17
Re: Erro hash - by shittt - 25.08.2013, 20:28
Re: Erro hash - by smiiir - 25.08.2013, 23:01

Forum Jump:


Users browsing this thread: 1 Guest(s)