Results 1 to 7 of 7

Thread: Compiling failure

  1. #1
    Join Date
    Dec 2011
    Posts
    237
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Compiling failure

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

    LogDTM := DTMFromString('mggAAAHicY2NgYHBhYmAwBmJbIPYG4kAgtg HiJ0C550D8HohvAfFLIL4LxB5mCgyxjrIMsW6aDG6m8gzeFooM Ec7qDP8ZsANGHBgCAPVgDCM=');
    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 [I]);
    If FindDTM(LogDTM,X,Y,SlotBox.X1,SlotBox.Y1, Slotbox.X2, Slotbox.Y2) Then
    Begin
    MouseItem(LogPattern[I],False):
    ChooseOption('Dro');
    End;
    End;

    End;


    [Error] (95:38): Type mismatch at line 94
    Compiling failed.
    "The holy grail is to spend less time making the picture then it takes poeple to look at it"- Banksy

  2. #2
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

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

    If I'm correct, it should be:
    Simba Code:
    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.

  3. #3
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    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?

  4. #4
    Join Date
    Dec 2011
    Posts
    237
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Its when I press play, and the line he though was it is line 94. And its the script from ur youtube teaching guide
    "The holy grail is to spend less time making the picture then it takes poeple to look at it"- Banksy

  5. #5
    Join Date
    Dec 2011
    Posts
    237
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by abu_jwka View Post
    This is why you should learn instead of just copy + paste

    If I'm correct, it should be:
    Simba Code:
    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.
    "The holy grail is to spend less time making the picture then it takes poeple to look at it"- Banksy

  6. #6
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    That colon should be a semicolon.

    Simba Code:
    MouseItem(LogPattern[I], 0);

  7. #7
    Join Date
    Dec 2011
    Posts
    237
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by i luffs yeww View Post
    That colon should be a semicolon.

    Simba Code:
    MouseItem(LogPattern[I], 0);
    Thank u I cant believe I missed that last night when I was trying to figure it out lol
    "The holy grail is to spend less time making the picture then it takes poeple to look at it"- Banksy

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •