PDA

View Full Version : [Bug] Unknown identifier 'MMCX' at line 135



bg5
12-26-2011, 03:31 AM
[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
12-26-2011, 04:36 AM
Make sure you have an updated SPS and SRL.

Nebula
12-26-2011, 05:58 AM
Did you remember to include srl and sps at the beginning of your script and in the beginning of your mainloop?

euphemism
12-26-2011, 02:59 PM
Well, more specifically, SRL needs to be included before SPS, as "MMCX" is a constant defined in SRL.

bg5
12-26-2011, 05:53 PM
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
12-26-2011, 09:19 PM
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...