Results 1 to 9 of 9

Thread: Why wont this bloody compile? :/

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

    Default Why wont this bloody compile? :/

    http://pastehtml.com/view/bpa6fufoj.txt

    Simba Code:
    Function DepositBox: Boolean;

    Var
      x, y, b, spot: Integer;


    begin
      spot:= DTMFromString('mWAAAAHicY2FgYNgAxLeBeDMQzwXiaUA8FYhXQrGRgQFDWqQzQ06cO0NGtCsDP1AMGTOiYRAAACUyCUo=');

      MarkTime(b);
      Repeat
        if FindDTM(spot, x, y, MSX1, MSY1, MSX2, MSY2) then
        begin
          Mouse(x, y, 4, 4, false);
          WaitOption('ulley', 200);    // Use this an improvement WaitOptionMulti(['Castl','astl','e Wa','rs R'], 1000) ofc edit time/words
          WaitOption('ift', 200);      // Use this an improvement WaitOptionMulti(['Castl','astl','e Wa','rs R'], 1000) ofc edit time/words
          Wait(RandomRange(750, 1000));
          Repeat
            wait(50);
          Until(IsMoving = false)
          Result:= True
        end else
        begin
          Result:= False
        end;
        if (TimeFromMark(b) > 5000) then
        begin
          Writeln('Unable to find Pulley Lift (deposit box) :(')
          Break;
        end;
      Until(Result = True);
      FreeDTM(spot);
    end;

    :/
    Debug:
    [Error] (397:1): Identifier expected at line 396
    Compiling failed.
    btw line 397 is "function DepositBox: Boolean;"
    Nearly maxed, woowweee.

  2. #2
    Join Date
    Jul 2009
    Location
    Australia
    Posts
    667
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    Are you sure that there are enough begins/ends on the procedure before? That usually causes that particular error.

    ~Caotom

  3. #3
    Join Date
    Jan 2010
    Posts
    1,414
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    It works fine for me. Can you paste the whole script, please?

    Thanks!
    Simba Code:
    (* Main *)

    repeat
      WriteLn('I am an idiot!');
    until(False);

  4. #4
    Join Date
    Dec 2011
    Posts
    496
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by RISK View Post
    It works fine for me. Can you paste the whole script, please?

    Thanks!
    RISK, I can't sorry :/ used one of flights functions and am yet to ask for permission :/ Forgot to ask him :S



    Quote Originally Posted by Caotom View Post
    Are you sure that there are enough begins/ends on the procedure before? That usually causes that particular error.

    ~Caotom
    THANK YOU SO MUCK <3 this worked
    Last edited by momotron; 02-25-2012 at 02:33 AM.
    Nearly maxed, woowweee.

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

    Default

    Just post it all so we can help you, I'm sure he wont mind.

  6. #6
    Join Date
    Dec 2011
    Location
    Nj
    Posts
    2,341
    Mentioned
    1 Post(s)
    Quoted
    18 Post(s)

    Default

    IF you can't, just (for me) list what is at line:
    394, 395, 396, 397.
    If it is in a loop, display the whole loop.

    For the basics of the basics of pascal, try my TuT. ||Photoshop Editing ||MapleResourceDung Script || Book a flight! BuySellTrip

  7. #7
    Join Date
    Oct 2010
    Posts
    1,255
    Mentioned
    0 Post(s)
    Quoted
    15 Post(s)

    Default

    You missed a semicolon.
    I'm back

  8. #8
    Join Date
    Dec 2011
    Location
    Nj
    Posts
    2,341
    Mentioned
    1 Post(s)
    Quoted
    18 Post(s)

    Default

    Quote Originally Posted by smurg View Post
    You missed a semicolon.
    Is that so... Would you mind posting for which line? I don't want him to keep posting questions like this...

    For the basics of the basics of pascal, try my TuT. ||Photoshop Editing ||MapleResourceDung Script || Book a flight! BuySellTrip

  9. #9
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    Quote Originally Posted by smurg View Post
    You missed a semicolon's.
    more then 3 chars

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
  •