From: The Claw
$ is hex I think. (asked wizzup about it the other day)
used like this:
If x = $0 Then x := $106;
If y = $0 Then y := $AA;
not sure how to implement into a script though.
I think Ben knows that also :). Taken from Math.scar:
{*******************************************************************************
function Hash(Str: String): LongInt;
By: BenLand100
Description: For your hashing pleasures ;) Returns a hash value for a string
*******************************************************************************}
function Hash(Str: string): LongInt;
var
i, x: Integer;
begin
Result := 0;
for i := 1 to Length(Str) do
begin
Result := (Result shl 4) + Ord(Str[i]);
x := Result and $F0000000;
if (x <> 0) then
begin
Result := Result xor (x shr 24);
Result := Result and (not x);
end;
end;
Result := (Result and $7FFFFFFF);
end;
I don't get that Result and part