Results 1 to 6 of 6

Thread: Amount.Scar Not compiling....

  1. #1
    Join Date
    Aug 2008
    Location
    !!LOL!!
    Posts
    247
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Amount.Scar Not compiling....

    just as title said amount not compiling i get this :Line 64: [Error] (9936:1): Identifier expected in script C:\Program Files\SCAR 3.20d\includes\SRL/SRL/Core/Amount.scar
    and this is the line
    SCAR Code:
    {*******************************************************************************
    function FindItemEx(var x, y: Integer; IdentType: string; Ident: Integer; Area: TBox; Tol: TIntegerArray): Boolean;
    By: Nava2
    Description: Finds an item in Area specified by TBox in Area. Valid IdentTypes are:
                 bmp, mask, color, dtm. The Tol variable is:
                 Tol[0] : Color Tolerance;
                 Tol[1] : Contour Tolerance or minimum Colors to Find to be True.
    *******************************************************************************}


    function FindItemEx(var x, y: Integer; IdentType: string; Ident: Integer; Area: TBox; Tol: TIntegerArray): Boolean;
    var
      Pts: TPointArray;
    begin
      Result := False;
      SetLength(Tol, 2);
    <<<<<<< .mine//<----- this is the line
      case Lowercase(IdentType) of
        'bitmap mask', 'bmpmask', 'bmp mask', 'mask': Result := FindBitmapMaskTolerance(Ident, x, y, Area.x1, Area.y1, Area.x2, Area.y2, Tol[0], Tol[1]);
        'bitmap', 'bmp': FindBitmapToleranceIn(Ident, x, y, Area.x1, Area.y1, Area.x2, Area.y2, Tol[0]);
    =======
      case Lowercase(IdentType) of
        'bitmap mask', 'bmpmask', 'bmp mask', 'mask': Result := FindBitmapMaskTolerance(Ident, x, y, Area.x1, Area.y1, Area.x2, Area.y2, Tol[0], Tol[1]);
        'bitmap', 'bmp': Result := FindTransparentBitmapTolerance(Ident, x, y, 0, Area.x1, Area.y1, Area.x2, Area.y2, Tol[0]);
    >>>>>>> .r33
        'dtm': Result := FindDTM(Ident, x, y, Area.x1, Area.y1, Area.x2, Area.y2);
        'colour', 'color':
          begin
            FindColorsTolerance(Pts, Ident, Area.x1, Area.y1, Area.x2, Area.y2, Tol[0]);
            if Tol[1] < 1 then Tol[1] := 1;
            Result := Length(Pts) >= Tol[1];
            if Result then
              MiddleTPAEx(Pts, x, y);
          end;
        else
          SRL_Warn('FindItem', 'Invalid identifier input as IdentType.', -1);
      end;
    end;
    here is the script i ran
    SCAR Code:
    program New;
    {.Include SRL/SRL.Scar}
    begin
      SetupSRL;
    end.
    thx for ur time
    Last edited by hackncrack1; 06-13-2009 at 01:37 AM.

  2. #2
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

  3. #3
    Join Date
    Feb 2007
    Posts
    143
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Shuttleu View Post
    delete the whole SRL folder and redownload SRL

    ~shut
    do it

  4. #4
    Join Date
    Oct 2007
    Location
    http://ushort.us/oqmd65
    Posts
    2,605
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by rogue poser View Post
    do it
    Spam much?
    I do visit every 2-6 months

  5. #5
    Join Date
    Aug 2008
    Location
    !!LOL!!
    Posts
    247
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok i did it and it workd

  6. #6
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Just in case you're interested in this stuff (And it'll be good to know, in case a friend has this happen to them), it's because there was an error while it was being downloaded (a bug due to subversion), and so bits of text are lost/jumbled up and it doesn't know what to do.

    ^^ I just think it's kinda interesting. haha

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
  •