View Full Version : MMCX Unknown identifier?
okokokok
05-16-2012, 04:58 PM
Hello guys,
I have been getting this error atm and can't fix it.
[Error] (43:35): Unknown identifier 'MMCX' at line 42
Compiling failed.
Surrounding code
begin
try
Result := TMufasaBitmap.Create;
Result.SetSize(150, 150);
c := getTClient;
Result.CopyClientToBitmap(
c.IOManager, false, 0, 0, MMCX-75, MMCY-75, MMCX+75, MMCY+75
);
except
Writeln('SPS_GatherMinimap ERROR: '+ExceptionToString(ExceptionType, ExceptionParam));
end;
end;
The error is in the BonFirePro script by Mat.
I know people will say use the search button, but i have already done that. Didn't get any results. I've been in this community for a while, so i know how things work, but i just can't fix this :duh:
Thanks in advance!
CephaXz
05-16-2012, 05:04 PM
Maybe use MSX1, MSY1, MSX2, MSY2
Maybe use MSX1, MSY1, MSX2, MSY2MS is main screen. MM is minimap, so no, don't do that :)
okokokok
05-16-2012, 05:10 PM
Got the latest SRL?
Downloaded all the latest updates, but that doesn't fix this error.
Yeh this has been an error recently.
If I'm correct, MMCX-75, MMCY-75, MMCX+75, MMCY+75 is exactly the same as MMX1, MMY1, MMX2, MMY2 except for the fact it starts searching from the center.
okokokok
05-16-2012, 06:11 PM
So there is nobody who can help me?
Brandon
05-16-2012, 06:24 PM
Hmm all the suggestions but none for includes :S.. You NEED {$I SRL/SRL.Simba}
at the top of your script. It initializes all boxes and requirements that most scripts use. If you seriously don't want to include it then include Globals.Simba just for the boxes but I'd recomment just including the SRL.Simba as it's still pretty small of an include.
If it's already there then go to C:/Simba/ and delete Settings.XML Open a fresh Simba, enable all extensions you want and update all of them through the menus. If you already did that and it still doesn't work then delete your SRL folder and try the above again.
okokokok
05-16-2012, 06:33 PM
Hmm all the suggestions but none for includes :S.. You NEED {$I SRL/SRL.Simba}
at the top of your script. It initializes all boxes and requirements that most scripts use. If you seriously don't want to include it then include Globals.Simba just for the boxes but I'd recomment just including the SRL.Simba as it's still pretty small of an include.
If it's already there then go to C:/Simba/ and delete Settings.XML Open a fresh Simba, enable all extensions you want and update all of them through the menus. If you already did that and it still doesn't work then delete your SRL folder and try the above again.
Not to be rude, but i have knowledge of scripting and it is not my script. All the things that should be there, are there. Updated everthing. Checked all the includes. So i'm still stuck. Thanks for your reply though :)
Smidqe
05-16-2012, 06:39 PM
What you probably have is like this
{$i sps/sps.simba}
{$i srl/srl.simba}
when it should be this, so double check you includes and make sure that they are at correct order (include SRL before SPS)
{$i srl/srl.simba}
{$i sps/sps.simba}
I think this was what Brandon(ggzz) was talking about.
Brandon
05-16-2012, 06:43 PM
Yeah and if that didn't fix it then did the other instructions about resetting simba via the Settings.XML fix it? That fixes almost 99% of SRL Include problems..
If I'm correct, MMCX-75, MMCY-75, MMCX+75, MMCY+75 is exactly the same as MMX1, MMY1, MMX2, MMY2 except for the fact it starts searching from the center.
Why don't you just replace MMCx and MMCy with the reverse and use MMx1+75, MMy1+75.
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.