SA-MP Forums Archive
having problem with hash - 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: having problem with hash (/showthread.php?tid=276667)



having problem with hash - TheKingOfSamp - 14.08.2011

Hi i get error (hash) and i already have YSI files.

(135) : error 021: symbol already defined: "udb_hash"


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


is there a way to get this solved

thanks


Re: having problem with hash - TheKingOfSamp - 14.08.2011

bump