Results 1 to 6 of 6

Thread: Can someone tell me whats wrong with this?

  1. #1
    Join Date
    Sep 2006
    Posts
    916
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Can someone tell me whats wrong with this?

    Wierd, something is going wrong


    Procedure Accept1;
    Begin
    If (findcolorTolerance(x, y, 32768 , MSX1, MSY1, MSX2, MSY2, 25)) Then
    Begin
    MMouse(x, y, 3, 3);
    Mouse(x, y, 3, 3, True);
    If (findcolorTolerance(x, y, 32768 , MSX1, MSY1, MSX2, MSY2, 25)) Then
    Begin
    Repeat
    MMouse(x, y, 3, 3);
    Mouse(x, y, 3, 3, True);
    If InChat('Well Done!') or
    InChat('Oh dear, you are dead!') Then Break;
    End;<---- Line 52
    End;
    Until(False)
    End;

    My error:

    Line 52: [Error] (15550:1): Identifier expected in script

  2. #2
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    indent and you will see the problem. repeat matches up with until and begin with end.

  3. #3
    Join Date
    Sep 2006
    Posts
    916
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    What? No idea what you mean man.

  4. #4
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Code:
    Procedure Accept1;
    Begin
      If (findcolorTolerance(x, y, 32768 , MSX1, MSY1, MSX2, MSY2, 25)) Then
      Begin
      MMouse(x, y, 3, 3); 
      Mouse(x, y, 3, 3, True);
      If (findcolorTolerance(x, y, 32768 , MSX1, MSY1, MSX2, MSY2, 25)) Then
      Begin
      Repeat
      MMouse(x, y, 3, 3);
      Mouse(x, y, 3, 3, True);
      If InChat('Well Done!') or
      InChat('Oh dear, you are dead!') Then Break;
      End;<---- Line 52
      End;
      Until(False)
    End;
    thats first step
    go out at begin and in at end
    Code:
    Procedure Accept1;
    Begin
      If (findcolorTolerance(x, y, 32768 , MSX1, MSY1, MSX2, MSY2, 25)) Then
      Begin
      MMouse(x, y, 3, 3); 
      Mouse(x, y, 3, 3, True);
      If (findcolorTolerance(x, y, 32768 , MSX1, MSY1, MSX2, MSY2, 25)) Then
      Begin
      Repeat
        MMouse(x, y, 3, 3);
        Mouse(x, y, 3, 3, True);
        If InChat('Well Done!') or
        InChat('Oh dear, you are dead!') Then Break;
        End;<---- Line 52
        End;
      Until(False)
    End;
    Then theres this repeat, with the ends inside, but the begins outside. You can't do that. The have to be inside or outside each other.

    Code:
    begin
      begin
        begin
          begin
            setupsrl;
          end;
        end;
      end;
    end;
    like that

  5. #5
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Yeah, he says that you must replace your 2 ends in your script to other place:
    Code:
    Procedure Accept1;
    Begin
    If (findcolorTolerance(x, y, 32768 , MSX1, MSY1, MSX2, MSY2, 25)) Then
    Begin
    MMouse(x, y, 3, 3);
    Mouse(x, y, 3, 3, True);
    If (findcolorTolerance(x, y, 32768 , MSX1, MSY1, MSX2, MSY2, 25)) Then
    Begin
    Repeat
    MMouse(x, y, 3, 3);
    Mouse(x, y, 3, 3, True);
    If InChat('Well Done!') or
    InChat('Oh dear, you are dead!') Then Break;
    Until(False)
    End;
    End;
    End;

  6. #6
    Join Date
    Sep 2006
    Posts
    916
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ohhhhh, ok thanks guys i get it now . I'll test it and if it works then im gonna post it .

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Whats Wrong.
    By kooldude in forum OSR Help
    Replies: 2
    Last Post: 03-27-2008, 09:13 AM
  2. [PHP] whats wrong with this.
    By XcanadamanX in forum General
    Replies: 14
    Last Post: 01-21-2008, 11:40 PM
  3. Whats Wrong???
    By bilbobaggins in forum OSR Help
    Replies: 12
    Last Post: 04-10-2007, 10:05 AM
  4. Replies: 8
    Last Post: 03-23-2007, 04:20 PM

Posting Permissions

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