Results 1 to 5 of 5

Thread: Semicolon (';') expected at line 7 Compiling failed.

  1. #1
    Join Date
    Jan 2013
    Posts
    21
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Question Semicolon (';') expected at line 7 Compiling failed.

    I don't know what it's talking about, I was just following a tutorial and it didn't compile for some reason. It just says:
    Not sure how to handle this, help is much appreciated.
    Code:
    [Error] C:\Users\One\Documents\Simba\Includes\srl/srl.Simba(8:109): Semicolon (';') expected at line 7
    Compiling failed.
    Code:
    Program MyWoodcutterPro
    {$DEFINE SMART}
    {$i srl/srl.Simba}
    {$i sps/sps.simba}
    
    var
    
      towillows: tpointarray;
    
      status: string;
    
    procedure paths;
      begin
        towillows:= [Point(436, 273), Point(435, 276), Point(434, 268), Point(431, 263), Point(431, 259), Point(421, 254), Point(410, 255), Point(392, 252), Point(383, 242), Point(383, 237), Point(378, 211), Point(375, 197), Point(368, 194), Point(357, 176), Point(357, 171), Point(354, 159), Point(351, 149), Point(337, 146), Point(327, 154), Point(318, 160), Point(308, 168), Point(295, 178), Point(280, 187), Point(265, 192), Point(248, 193), Point(230, 204), Point(219, 223), Point(216, 238), Point(215, 247), Point(206, 258), Point(198, 266), Point(182, 277), Point(165, 283), Point(152, 302), Point(149, 316), Point(148, 334), Point(144, 346), Point(137, 366), Point(126, 378), Point(117, 387), Point(104, 396), Point(91, 411), Point(87, 421), Point(85, 442), Point(83, 449), Point(85, 467), Point(87, 485), Point(89, 501), Point(91, 520), Point(90, 536), Point(89, 549), Point(91, 566), Point(90, 579)]
      end;
    procedure testingpath;
      begin
        if sps_walkpath(towillows) then
          status := 'walking to the willows'
        else begin
          status := 'we did not make it there';
          writeln(status + ' + time running:' +timerunning);
        end;
         writeln(status + ' + time running: ' +timerunning);
      end;
    begin
      srl_sixhourfix := true;
      smart_fixspeed := true;
    
      setupsrl;
      paths;
    
      sps_setup(runescape_other, ['willowtrees']);
    
      clicknorth(srl_angle_high);
    
      testpath;
    
      repeat
      until(false)
    end.

  2. #2
    Join Date
    May 2012
    Location
    Moscow, Russia
    Posts
    661
    Mentioned
    35 Post(s)
    Quoted
    102 Post(s)

    Default

    Quote Originally Posted by ForMyFutures View Post
    I don't know what it's talking about, I was just following a tutorial and it didn't compile for some reason. It just says:
    Not sure how to handle this, help is much appreciated.
    Code:
    [Error] C:\Users\One\Documents\Simba\Includes\srl/srl.Simba(8:109): Semicolon (';') expected at line 7
    Compiling failed.
    Code:
    Program MyWoodcutterPro
    {$DEFINE SMART}
    {$i srl/srl.Simba}
    {$i sps/sps.simba}
    
    var
    
      towillows: tpointarray;
    
      status: string;
    
    procedure paths;
      begin
        towillows:= [Point(436, 273), Point(435, 276), Point(434, 268), Point(431, 263), Point(431, 259), Point(421, 254), Point(410, 255), Point(392, 252), Point(383, 242), Point(383, 237), Point(378, 211), Point(375, 197), Point(368, 194), Point(357, 176), Point(357, 171), Point(354, 159), Point(351, 149), Point(337, 146), Point(327, 154), Point(318, 160), Point(308, 168), Point(295, 178), Point(280, 187), Point(265, 192), Point(248, 193), Point(230, 204), Point(219, 223), Point(216, 238), Point(215, 247), Point(206, 258), Point(198, 266), Point(182, 277), Point(165, 283), Point(152, 302), Point(149, 316), Point(148, 334), Point(144, 346), Point(137, 366), Point(126, 378), Point(117, 387), Point(104, 396), Point(91, 411), Point(87, 421), Point(85, 442), Point(83, 449), Point(85, 467), Point(87, 485), Point(89, 501), Point(91, 520), Point(90, 536), Point(89, 549), Point(91, 566), Point(90, 579)]
      end;
    procedure testingpath;
      begin
        if sps_walkpath(towillows) then
          status := 'walking to the willows'
        else begin
          status := 'we did not make it there';
          writeln(status + ' + time running:' +timerunning);
        end;
         writeln(status + ' + time running: ' +timerunning);
      end;
    begin
      srl_sixhourfix := true;
      smart_fixspeed := true;
    
      setupsrl;
      paths;
    
      sps_setup(runescape_other, ['willowtrees']);
    
      clicknorth(srl_angle_high);
    
      testpath;
    
      repeat
      until(false)
    end.
    Just put semicolon after ] in toWillows code.
    Per aspera ad Astra!
    ----------------------------------------
    Slow and steady wins the race.

  3. #3
    Join Date
    Sep 2012
    Location
    Australia.
    Posts
    839
    Mentioned
    16 Post(s)
    Quoted
    225 Post(s)

    Default

    Give this a whirl:

    Simba Code:
    1. program MyWoodcutterPro;
    2. {$DEFINE SMART8}
    3. {$i srl/srl.Simba}
    4. {$i sps/sps.simba}
    5.  
    6. var
    7.  
    8.   towillows: tpointarray;
    9.  
    10.   status: string;
    11.  
    12. procedure paths;
    13.   begin
    14.     towillows:= [Point(436, 273), Point(435, 276), Point(434, 268), Point(431, 263), Point(431, 259), Point(421, 254), Point(410, 255), Point(392, 252), Point(383, 242), Point(383, 237), Point(378, 211), Point(375, 197), Point(368, 194), Point(357, 176), Point(357, 171), Point(354, 159), Point(351, 149), Point(337, 146), Point(327, 154), Point(318, 160), Point(308, 168), Point(295, 178), Point(280, 187), Point(265, 192), Point(248, 193), Point(230, 204), Point(219, 223), Point(216, 238), Point(215, 247), Point(206, 258), Point(198, 266), Point(182, 277), Point(165, 283), Point(152, 302), Point(149, 316), Point(148, 334), Point(144, 346), Point(137, 366), Point(126, 378), Point(117, 387), Point(104, 396), Point(91, 411), Point(87, 421), Point(85, 442), Point(83, 449), Point(85, 467), Point(87, 485), Point(89, 501), Point(91, 520), Point(90, 536), Point(89, 549), Point(91, 566), Point(90, 579)]
    15.   end;
    16. procedure testingpath;
    17.   begin
    18.     if sps_walkpath(towillows) then
    19.       status := 'walking to the willows'
    20.     else begin
    21.       status := 'we did not make it there';
    22.       writeln(status + ' + time running:' +timerunning);
    23.     end;
    24.      writeln(status + ' + time running: ' +timerunning);
    25.   end;
    26. begin
    27.   srl_sixhourfix := true;
    28.   smart_fixspeed := true;
    29.  
    30.   setupsrl;
    31.   paths;
    32.  
    33.   sps_setup(runescape_other, ['willowtrees']);
    34.  
    35.   clicknorth(srl_angle_high);
    36.  
    37.   testingpath;
    38.  
    39.   repeat
    40.   until(false)
    41. end.

    Renamed testpath to testingpath in mainloop as that's what it is in your script. Your error was after

    Simba Code:
    program MyWoodcutterPro
    You didn't have a ;

    Enjoy.

  4. #4
    Join Date
    Jan 2013
    Posts
    21
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    That was it! Thanks so much, it keeps heading west, but I'll figure it out.

  5. #5
    Join Date
    Nov 2007
    Posts
    40
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    ....
    Last edited by wolffang92; 03-07-2013 at 04:51 PM.

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
  •