SRL Archive - SRL Positioning System

Unknown identifier 'MMCX' at line 135


bg5

2011-12-25 22:31:56

[Error] C:\Users\user\Desktop\Simba\Includes\sps/sps.simba(136:34): Unknown identifier 'MMCX' at line 135

// Gets the map pieces that appear on the minimap
function SPS_GatherMinimap: T3DIntegerArray;
var
bmp: TMufasaBitmap;
c: TClient;
begin
try
bmp := TMufasaBitmap.Create;
bmp.SetSize(100, 100);

c := getTClient;
bmp.CopyClientToBitmap(
c.IOManager, false, 0,0, MMCX-50, MMCY-50, MMCX+50, MMCY+50 // line 135 here
);

Result := SPS_BitmapToMap(bmp);
finally
bmp.free;
except
SPS_DebugStr('[ERROR] in SPS_GatherMinimap: '+ExceptionToString(ExceptionType, ExceptionParam));
SPS_WarnUser('SPS_GatherMinimap', ExceptionToString(ExceptionType, ExceptionParam));
end;
end;

I'm trying to run one script ,but still getting error in sps.scar.

Kyle Undefined

2011-12-25 23:36:53

Make sure you have an updated SPS and SRL.

Nebula

2011-12-26 00:58:52

Did you remember to include srl and sps at the beginning of your script and in the beginning of your mainloop?

euphemism

2011-12-26 09:59:48

Well, more specifically, SRL needs to be included before SPS, as "MMCX" is a constant defined in SRL.

bg5

2011-12-26 12:53:05

It was Simple Account Maker
http://villavu.com/forum/showthread.php?t=67822

Sps.scar was included before SLR. I fixed it and it works:) Thx for help

hamster31

2011-12-26 16:19:31

lol trust me…ignore my scripts and its flaws…write your self one :) its much more rewarding and its much more fun…you may get annoyed as hell at times but it will come together…