Log in

View Full Version : [Bug] DTM problems



akash22
05-26-2012, 09:57 PM
Hey guys i was wondering what was wrong with this, i followed the tutorial buy it says [Error] (125:1): Identifier expected at line 124
Compiling failed

Program DTM;
{.include SRL/SRL.simba}
Var
Arrow:integer;
X,y:integer;

Procedure LoadDTM;
Begin
Arrow := DTMFromString('mggAAAHicY2NgYOACYhEgFgBiXiDmYIAAZi gN4vMDsTCUdtEA6WDCwCIM2AEjDgwBAGIcASA');
End;

Procedure FindItem;
Begin
If FindDTM(Arrow,x,y,MIX1,MIY1,MIX2,MIY2)THEN
Begin
MMouse(x,y,5,5);
If Isuptext('Arrow') then
Begin
mouse(x,y,5,5,true);
end else
WriteIn('No DTM found');
end;
end;

Begin
SetupSRL: // MAIN LOOP
ActivateClient;
LoadDTM; // Call the loading first
FindItem;
FreeDTM(ArrowDTM)

akash22
05-26-2012, 09:58 PM
when i try to start the script it hilights Program DTM;

and this coding is in the main loop

YoHoJo
05-26-2012, 10:00 PM
Post it in simba tags so easier to read.
What is the line?
You are missing an end. at bottom of script.

akash22
05-26-2012, 10:01 PM
how to post in tags?

YoHoJo
05-26-2012, 10:04 PM
When you make a new thread or click 'go advanced' under a new post you wi see a button above that looks like a lion head.

Click that once, then post your thread in between the tags.