Results 1 to 8 of 8

Thread: colon expected in script

  1. #1
    Join Date
    Jun 2007
    Posts
    246
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default colon expected in script

    SCAR Code:
    var Ry: integer;
    procedure ZenmaAntiBan1;
    begin
      Status('Procedure zenmaAntiBan1');
      Ry:=Random(41);
      case Ry of

      24: begin                        Gametab(13);   //
          case random(8) of  //
          1: begin       //
          threalm := loadbitmap('C:\Program Files\SCAR 3.11\threalm.bmp');    //
          if findbitmaptolerancein(threalm, x, y, MIX1, MIY1, MIX2, MIY2,8) then
          begin
          mmouse(x,y,15,15);      //
          if (isuptext('k')) then     //
          begin                   //
          Mouse(x,y,0,0,true);     //
          end;                   //
          end;                 //
          end;                   //     //
          gametab(4);           //
          end;                   //
          end;


      end;
      unloadbmaps;
    end;

    ive isolated the error to this part of the script but i cant find out where the rror is? anyone think they can help?

  2. #2
    Join Date
    Oct 2006
    Posts
    1,071
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    SCAR Code:
    var Ry: integer;
    procedure ZenmaAntiBan1;
    begin
      Status('Procedure zenmaAntiBan1');
      Ry:=Random(41);
      case Ry of
     
      24: begin                        Gametab(13);   //
          case random(8) of  //
          1: begin       //
          threalm := loadbitmap('C:\Program Files\SCAR 3.11\threalm.bmp');    //
          if findbitmaptolerancein(threalm, x, y, MIX1, MIY1, MIX2, MIY2,8) then
          begin
          mmouse(x,y,15,15);      //
          if (isuptext('k')) then     //
          begin                   //
          Mouse(x,y,0,0,true);     //
          end;                   //
          end;                 //                  //     //
          gametab(4);
          end;     //
          end;                   //
          end;
     
     
      end;
      unloadbmaps;
    end;

    The needed the gametab before the 5th to last 'end;' of the procedure.

  3. #3
    Join Date
    Jun 2007
    Posts
    246
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    oh ok thanks =)

  4. #4
    Join Date
    Dec 2006
    Location
    Banville
    Posts
    3,914
    Mentioned
    12 Post(s)
    Quoted
    98 Post(s)

    Default

    I would add that you should work on your standards.


    Nothing personal,
    -r0b0t1
    The jealous temper of mankind, ever more disposed to censure than
    to praise the work of others, has constantly made the pursuit of new
    methods and systems no less perilous than the search after unknown
    lands and seas.

  5. #5
    Join Date
    Jun 2007
    Posts
    246
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol i dont really care about standards much but ill go read a tut on em real fast...since i cant auto anyways and i dont feel like working on my script

  6. #6
    Join Date
    Oct 2006
    Posts
    1,071
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    It's not that difficult And makes it much easier to find mistakes, I actually rewrote your script to find the problem.

  7. #7
    Join Date
    Apr 2007
    Location
    new zealand
    Posts
    87
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ah yea standards would be good idea and what with all he comment marks but no comment lol

  8. #8
    Join Date
    Jun 2007
    Posts
    246
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol its because i was doing something to find the error like i would use comment marks to say that that line has no errors.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Colon expected?
    By impiwimpi in forum OSR Help
    Replies: 9
    Last Post: 01-21-2009, 05:06 PM
  2. Colon expected.
    By skilld u in forum OSR Help
    Replies: 2
    Last Post: 02-24-2008, 11:54 PM
  3. colon (':') expected in script..
    By dvdcrayola in forum OSR Help
    Replies: 3
    Last Post: 08-15-2007, 04:58 AM
  4. Colon Expected
    By Hey321 in forum OSR Help
    Replies: 3
    Last Post: 01-28-2007, 01:00 PM
  5. semi colon expected in script -.-
    By oliver1205 in forum OSR Help
    Replies: 1
    Last Post: 01-07-2007, 02:18 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
  •