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.