J J
03-08-2012, 05:27 PM
I've never had this error before and I have no idea what is wrong.
New window: 394796
[Hint] C:\Simba\Includes\SRL/SRL/core/login.simba(528:3): Variable 'X' never used at line 527
[Hint] C:\Simba\Includes\SRL/SRL/core/login.simba(528:3): Variable 'Y' never used at line 527
[Hint] C:\Simba\Includes\SRL/SRL/core/antirandoms\demon.simba(167:3): Variable 'C' never used at line 166
Compiled successfully in 468 ms.
SRL Compiled in 0 msec
Exception: Range check error at line 36
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap]
And this pops up
Function rs_GetCompassAngleRadians: Extended;
var
TPA: TPointArray;
T, M: TPoint;
B: TBox;
begin
B := IntToBox(529, 9, 557, 39);
with B do
FindColorsSpiralTolerance(T.x, T.y, TPA, 65536, x1, y1, x2, y2, 0);
if Length(TPA) < 1 then
Exit;
M := MiddleBox(B);
T := MiddleTPA(TPA);
Result := ArcTan2(-(T.Y - M.Y), T.X - M.X+0.5) + Radians(90);
Result := fixRad(Result - Pi);
end;
This part is red: B := IntToBox(529, 9, 557, 39);
What is the problem?
New window: 394796
[Hint] C:\Simba\Includes\SRL/SRL/core/login.simba(528:3): Variable 'X' never used at line 527
[Hint] C:\Simba\Includes\SRL/SRL/core/login.simba(528:3): Variable 'Y' never used at line 527
[Hint] C:\Simba\Includes\SRL/SRL/core/antirandoms\demon.simba(167:3): Variable 'C' never used at line 166
Compiled successfully in 468 ms.
SRL Compiled in 0 msec
Exception: Range check error at line 36
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap]
And this pops up
Function rs_GetCompassAngleRadians: Extended;
var
TPA: TPointArray;
T, M: TPoint;
B: TBox;
begin
B := IntToBox(529, 9, 557, 39);
with B do
FindColorsSpiralTolerance(T.x, T.y, TPA, 65536, x1, y1, x2, y2, 0);
if Length(TPA) < 1 then
Exit;
M := MiddleBox(B);
T := MiddleTPA(TPA);
Result := ArcTan2(-(T.Y - M.Y), T.X - M.X+0.5) + Radians(90);
Result := fixRad(Result - Pi);
end;
This part is red: B := IntToBox(529, 9, 557, 39);
What is the problem?