Results 1 to 6 of 6

Thread: Semicolon (';') help

  1. #1
    Join Date
    Feb 2008
    Posts
    21
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Semicolon (';') help

    SCAR Code:
    Function FindAxeHeadColors: Boolean;
    Var
    AX, AY, Tries: Integer;
    Begin


       If(not(LoggedIn))then Exit;

       GameTab(4);//here is line 105

       // Look for axe in inventory
       If(FindBitmapMaskTolerance(AxeMask, AX, AY, MIX1, MIY1, MIX2, MIY2, 10, 5))then
       Begin
          AxeHeadColor1:= GetColor(AX + 5, AY + 3);
          AxeHeadColor2:= GetColor(AX + 7, AY + 2);
          AxeHeadColor3:= GetColor(AX, AY + 3);
          EquipAxe:= False;
          Result:= True;
          end
       else
       Begin
          GameTab(5);
          Wait(100+Random(75));

          // Look for axe equipped
          If(FindBitmapMaskTolerance(AxeMask, AX, AY, MIX1, MIY1, MIX2, MIY2, 10, 5))then
          Begin
               AxeHeadColor1:= GetColor(AX + 5, AY + 3);
               AxeHeadColor2:= GetColor(AX + 7, AY + 2);
               AxeHeadColor3:= GetColor(AX, AY + 3);
               EquipAxe:= True;
               Result:= True;
          End
             GameTab(4);//here is line 105
       End

       // Try to get Axe From Bank
       if (Result = False) then
       Begin
          // Open the bankscreen
          Repeat
             OpenBankFast('db');
             Tries := Tries + 1;
          Until ((BankScreen) Or (Tries > 4));

          // Retrieve an axe
          If BankScreen Then
          Begin
             Result := GetAxeFromBank;
             Closebank;
          End
       End

       // If axe has been found
       If(Result= True)then
       Begin
          // Set flags accordingly
          NoAxe:= False;
       End
       else
       Begin
          // No axe logout

          Players[CurrentPlayer].Loc:= 'No Axe';
          Logout;
       End
    Line 105: [Error] (12884:1): Semicolon (';') expected in script C:\Program Files\SCAR 3.14\Scripts

    plz help me solve this

  2. #2
    Join Date
    Mar 2007
    Posts
    3,116
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    I'm not getting any errors(well besided the one because I dont have bitmap mask)

    edit:Wow dumb on my part. Put a Semicolon on the line before to fix those kinds of errors.

  3. #3
    Join Date
    Feb 2008
    Posts
    21
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    but im getting why is that?

  4. #4
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    2,984
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by TommyGun View Post
    but im getting why is that?
    Quote Originally Posted by Mylesmadness View Post
    edit:Wow dumb on my part. Put a Semicolon on the line before to fix those kinds of errors.
    Administrator's Warning:


  5. #5
    Join Date
    Feb 2008
    Posts
    21
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ty very much you helped me

  6. #6
    Join Date
    Feb 2008
    Posts
    21
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    sorry for asking dumb questions

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Semicolon
    By 2pacfan in forum OSR Help
    Replies: 4
    Last Post: 03-20-2008, 09:01 PM
  2. Semicolon help
    By Dangerous Garden Tools in forum OSR Help
    Replies: 17
    Last Post: 03-11-2008, 04:08 PM
  3. But there IS a semicolon... wtf
    By Nu2Scar in forum OSR Help
    Replies: 5
    Last Post: 04-16-2007, 12:34 AM

Posting Permissions

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