03.10.2011, 17:44
Quote:
Edit: I'm kicking only if the text repeats ~30 times, so the collisions don't really matter. Maybe this would do: pawn Код:
|
Edit: if you'd use this hash, speedup:
pawn Код:
stock small_hash(buf[])
{
new i = -1, int = 0;
while (buf[++i] != 0) int += buf[i];
return int;
}