SRL Archive - OSR Help

Mismatch error


Conflagerate

2013-02-26 22:24:52

Im getting [Error] E:\Simba\Scripts\PowerMiner.simba(112:40): Type mismatch at line 111
Compiling failed. its on the MouseItem action. the procedure that im getting it on is

Procedure DropOre;
var
X, Y, OreDTM, I:Integer;
SlotBox:Tbox;
OrePattern:TIntegerArray;

begin
MarkTime(TooLong)
OreDTM := DTMFromString('mrAAAAHic42BgYLjIyMBwAIhPAvE1IL4LxJeA+DYQHwbinUA1e4D4EBAfBOJtQLwGiNcD8RYg9tFTApKMWLGRpjTDfwb8ALtOBIYBAFuEDmo=');
OrePattern := [1, 5, 9, 13, 17, 21, 25, 2, 6, 10, 14, 18, 22, 26, 3, 7, 11, 15, 19, 23, 27, 4, 8, 12, 16, 20, 24, 28];
For I := 0 To 27 Do
begin
FindNormalRandoms;
SlotBox := InvBox(OrePattern[I]);
if FindDTM(OreDTM, x, y, SlotBox.X1, SlotBox.Y1, SlotBox.X2, SlotBox.Y2) then
begin
MouseItem(OrePattern[I], false);
ChooseOption('Dro');
end;

end;
MarkTime(TooLong)
end;

If you need more code to help, obviously just ask. thank you so much much, im trying to make my first RS script. Some of it might be out of date or something. Not sure

Conflagerate

2013-02-26 23:00:57

Fixed thank you n3ss3s for finding my idiotic mistake :)