Results 1 to 7 of 7

Thread: whats wrong with my chop?

  1. #1
    Join Date
    Jul 2007
    Location
    Missouri
    Posts
    318
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    whats wrong with my chop?

    SCAR Code:
    procedure Chop;
    var cx, cy: Integer;
    begin
     SetAngle(true);
     if FindObjCustom(cx, cy, ['Mage', 'age', 'Mag'],[1385251, 1780264, 3098949], 3)
     then
      begin
       Case random(2) of
        0: begin
         MMouse(cx, cy, 2, 2);
         FindEnt(cx, cy, true);
         Mouse(cx, cy, 0, 0, true);
         FindEnt(cx, cy, true);
            end;
        1: begin
         MMouse(cx, cy, 2, 2);
         FindEnt(cx, cy, true);
         Mouse(cx, cy, 0, 0, false);
         FindEnt(cx, cy, true);
         ChooseOption('Chop down');
           end;
         end;
       end;
     end.

    Code:
    [Error] (12854:4): Semicolon (';') expected
    ?? Edited

  2. #2
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    The case wants an end.

  3. #3
    Join Date
    Jul 2007
    Location
    Missouri
    Posts
    318
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol, thanx, i didn't even think about that, but now i get:

    Code:
    [Error] (12854:4): Semicolon (';') expected
    any ideas?

  4. #4
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    edit your function to your first post so I can see what is wrong.

  5. #5
    Join Date
    Jul 2007
    Location
    Missouri
    Posts
    318
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    um... ok, i edited it, i just wanted to bump so n3ss3s would see it lol. you can delete this post, cause its worthless.

  6. #6
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    Its because you have a period '.' instead of a semicolon ';' in the end of the procedure

    Only the mainloop's end ends to a '.'

  7. #7
    Join Date
    Jul 2007
    Location
    Missouri
    Posts
    318
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    alright, i got it to work just fine now, i really appreciate the help.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Whats wrong here?
    By BobboHobbo in forum OSR Help
    Replies: 3
    Last Post: 06-20-2007, 06:25 AM
  2. whats wrong?
    By knightsotor in forum OSR Help
    Replies: 3
    Last Post: 06-09-2007, 01:56 AM
  3. Replies: 8
    Last Post: 03-23-2007, 04:20 PM
  4. Anyone Know Whats Wrong Here?
    By Drakan in forum OSR Help
    Replies: 0
    Last Post: 01-03-2007, 09:26 PM
  5. Can someone tell me whats wrong with this?
    By Hey321 in forum OSR Help
    Replies: 5
    Last Post: 12-17-2006, 09:49 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
  •