SRL Archive - Reflection Help

Another Error..


TViYH

2008-09-25 17:13:34

[Runtime Error] : Exception: Access violation at address 02024CE2 in module 'Embedded SMART.dll'. Read of address 0000029E in line 206 in script C:\Program Files\SCAR 3.15\includes\SRL\SRL\Reflection\Core.Scar


{*******************************************************************************
function GetMyPos:TPoint;
By: BenLand100
Description: Calculates your x,y position or [somehugenumber] if not
logged in
*******************************************************************************}
function GetMyPos:TPoint;
var
me: Integer;
begin
me := SmartGetFieldObject(0,MyPlayer); //THIS LINE <-----------
Result.x := SmartGetFieldInt(0,BaseX) + SmartGetFieldInt(me, CurrentX) shr 7;
Result.y := SmartGetFieldInt(0,BaseY) + SmartGetFieldInt(me, CurrentY) shr 7;
SmartFreeObject(me);
end;

Help plawkz.

EvilChicken!

2008-09-25 18:02:43

Have you replaced your old SMART.dll with the NEW one that comes with reflection include?


Try doing that again, remember to replace the correct dll file!

TViYH

2008-09-25 18:55:34

I still get the same error.

Shuttleu

2008-09-25 19:01:29

have you deleted the old embedded smart.dll
then coppied over the new embedded_smart.dll
then renamed it to embedded smart.dll
?

~shut

TViYH

2008-09-25 19:29:07

I'll try renaming it to embedded smart.dll. i left it as embedded_smart.dll.

EDIT: That was teh fixes. But, I don't really think that was the problem. I think I had an error in my script that caused it to break. lol.