SRL Archive - Reflection Help

Error!


TViYH

2008-09-23 20:58:37


Failed when compiling
Line 405: [Error] (16848:45): Type mismatch in script C:\Program Files\SCAR 3.15\includes\SRL\SRL\Reflection\Core.Scar


{*******************************************************************************
Function TileOnMMEx(Tile: TTile): Boolean;
By: Timer
Description: True = Tile on MM
*******************************************************************************}
function TileOnMMEx(Tile: TTile): Boolean;
var
PointEx: TTile;
begin
PointEx := TileToMMEx(Tile);
Result := rs_OnMinimap(PointEx.x, PointEx.y); // This line
end;

Tniffoc

2008-09-23 21:21:45

From: TheVoiceInYourHead

Failed when compiling
Line 405: [Error] (16848:45): Type mismatch in script C:\Program Files\SCAR 3.15\includes\SRL\SRL\Reflection\Core.Scar


{*******************************************************************************
Function TileOnMMEx(Tile: TTile): Boolean;
By: Timer
Description: True = Tile on MM
*******************************************************************************}
function TileOnMMEx(Tile: TTile): Boolean;
var
PointEx: TTile;
begin
PointEx := TileToMMEx(Tile);
Result := rs_OnMinimap(PointEx.x, PointEx.y); // This line
end;

SCAR was doing this to me once… I re-typed the line and it worked like a charm. If that doesn't work, then I don't know what to do…

TViYH

2008-09-23 21:33:04

Woop. I just fixed it. Had to turn the TTile back into a TPoint to use it on the minimap.


{*******************************************************************************
Function TileOnMMEx(Tile: TTile): Boolean;
By: Timer
Description: True = Tile on MM
*******************************************************************************}
function TileOnMMEx(Tile: TTile): Boolean;
var
PointEx: TTile;
PointExPoint: TPoint;
begin
PointEx := TileToMMEx(Tile);
PointExPoint := TileToPoint(PointEx);
Result := rs_OnMinimap(PointExPoint.x, PointExPoint.y);
end;

Nava2

2008-09-24 07:28:06

Okay, DO NOT WORRY ABOUT THESE ERRORS! THEY WILL BE FIXED.

Its just taking Narcle some time. :(

Jethr0x

2008-09-24 21:09:35

juust fix it urself. its not hard. mines working like a charm :)