SRL Archive - General

Compiling failure


bloopa1

2012-05-17 02:14:08

Procedure DropLogs;
var
X, Y, LogDTM, I:Integer;
SlotBox:TBox;
LogPattern:TIntegerArray;
Begin

LogDTM := DTMFromString('mggAAAHicY2NgYHBhYmAwBmJbIPYG4kAgtgHiJ0C550D8HohvAfFLIL4LxB5mCgyxjrIMsW6aDG6m8gzeFooMEc7qDP8ZsANGHBgCAPVgDCM=');
LogPattern:=[1,5,8,13,17,21,25,2,6,10,14,18,22,26,3,7,11,15,19,23,4,8,12,16,20,24,28];
For I:=0 To 27 Do
Begin
Slotbox:=InvBox(LogPattern );
If FindDTM(LogDTM,X,Y,SlotBox.X1,SlotBox.Y1, Slotbox.X2, Slotbox.Y2) Then
Begin
MouseItem(LogPattern,False):
ChooseOption('Dro');
End;
End;

End;


[Error] (95:38): Type mismatch at line 94
Compiling failed.

Abu

2012-05-17 02:29:56

This is why you should learn instead of just copy + paste

If I'm correct, it should be:
MouseItem(LogPattern[I],0):

I uninstalled Simba so I'm not 100% on this - but I remember solving a similar issue with the same function. So the above should work.

YoHoJo

2012-05-17 02:30:04

Paste code in simba tags so it's easier to read.
Also, which line is line 94?
Entire script posted would be nice.

Does it happen when you press play, or during runtime?

bloopa1

2012-05-17 02:37:24

Its when I press play, and the line he though was it is line 94. And its the script from ur youtube teaching guide :)

bloopa1

2012-05-17 02:41:00

From: abu_jwka
This is why you should learn instead of just copy + paste

If I'm correct, it should be:
MouseItem(LogPattern[I],0):

I uninstalled Simba so I'm not 100% on this - but I remember solving a similar issue with the same function. So the above should work.


Im writing this script to learn! haha I get this error when I do as u suggested.
[Error] (95:34): Identifier expected at line 94
Compiling failed.

i luffs yeww

2012-05-17 05:07:50

That colon should be a semicolon.


MouseItem(LogPattern[I], 0);

bloopa1

2012-05-17 10:24:11

From: i luffs yeww
That colon should be a semicolon.


MouseItem(LogPattern[I], 0);


Thank u I cant believe I missed that last night when I was trying to figure it out lol