SRL Archive - Reflection Help

Math error walking.scar


trojan

2008-12-22 14:24:25

[Runtime Error] : Math error in line 97 in script C:\Program Files\SCAR 3.15\includes\SRL\SRL\Reflection\Walking.Scar

i get this when using Heaven'z regular tree pwnz0r 0.8.

this is my line 97

{*******************************************************************************
Function DistanceFrom(Tile: TPoint): Integer;
By: Widget modded by Timer
Description: Returns the distance between your player and the tile. (Tiles)
*******************************************************************************}
function DistanceFrom(Tile: TPoint): Integer;
var
MyPos: TPoint;
begin
MyPos := GetMyPos;
Result := Distance(MyPos.x, MyPos.y, Tile.X, Tile.Y); //line 97
end;

is there an error with the script or is it my reflection?