SRL Archive - Reflection Help

Unknown Identifier error


superbatman

2009-03-02 16:13:40

Hello everybody, i have never used reflection OR even smart, and when i was trying to run timers program:

{.include SRL\SRL\Misc\Smart.scar}
{.include SRL\SRL.scar}
{.include SRL\SRL\Reflection\Reflection.scar}

var
Ref_Pos: TPoint;

begin
SmartSetupEx(World, False, True, False);
SetTargetDc(SmartGetDC);
SetupSRL;
Ref_Pos := GetMyPos;
WriteLn('Point(' + IntToStr(Ref_Pos.x) + ', ' + IntToStr(Ref_Pos.y) + ')');
end.

it fails and returns:

Line 87: [Error] (16562:19): Unknown identifier 'SmartStringFromChars' in script C:\Documents and Settings\Owner\Desktop\SCAR 3.15\includes\SRL\SRL\Reflection\Core.Scar

MasterKill

2009-03-02 16:42:12

Hi, did you update reflection, and moved the new S.M.A.R.T. V4.2 to the plug ins folder and replace the old one? :)

Bobarkinator

2009-03-02 19:05:16

From: superbatman
Hello everybody, i have never used reflection OR even smart, and when i was trying to run timers program:

{.include SRL\SRL\Misc\Smart.scar}
{.include SRL\SRL.scar}
{.include SRL\SRL\Reflection\Reflection.scar}

var
Ref_Pos: TPoint;

begin
SmartSetupEx(World, False, True, False);
SetTargetDc(SmartGetDC);
SetupSRL;
Ref_Pos := GetMyPos;
WriteLn('Point(' + IntToStr(Ref_Pos.x) + ', ' + IntToStr(Ref_Pos.y) + ')');
end.

it fails and returns:

Line 87: [Error] (16562:19): Unknown identifier 'SmartStringFromChars' in script C:\Documents and Settings\Owner\Desktop\SCAR 3.15\includes\SRL\SRL\Reflection\Core.Scar


Yeah, you need to do what MasterKill said second. There is a plugin in the folder called "PLACE INSIDE PLUGINS FOLDER" in the Reflection dir, you need to put the plugin in that folder into your plugins folder.