Results 1 to 3 of 3

Thread: Type mismatch error

  1. #1
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default Type mismatch error

    Simba Code:
    Function FindYew: Integer; //Credit to Kyle for the TUT
    Var
     a :Integer;
     TPA: TPointArray;
     ATPA : T2DPointArray;
     MP :TPoint;
     tmpCTS :Integer;
     Box :TBox;
    Begin
      If(Not(LoggedIn))Then Exit;
      tmpCTS :=GetColorToleranceSpeed;
      ColorToleranceSpeed(2);
      SetColorSpeed2Modifiers(0.12, 0.12)

      FindColorsSpiralTolerance(MSCX, MSCY, TPA, VeYew, MSX1, MSY1, MSX2, MSY2, 5);
      SortTPAFrom(TPA, Point(MSCX, MSCY));
      ATPA := TPAtoATPAEx(TPA, 15, 15);

       For a := 0 To High(ATPA) Do
      Begin
        MP := MiddleTPA(ATPA[a]);
        Box := IntToBox((MP.X - 20), (MP.Y - 20), (MP.X + 20), (MP.Y + 20));
         {$IFDEF SMART}
        SMART_DrawBoxEx(True, Box, clYellow);
        {$ENDIF}
        MMouse(MP.X, MP.Y, 4, 4);
        If(WaitUptext('Tree', 750))Then
        Begin
          X := MP.X; Y := MP.Y;
          Result := True;
          {$IFDEF SMART}
          SMART_ClearCanvas;
          {$ENDIF}
          Break;
        End;
      End;

      ColorToleranceSpeed(tmpCTS);
      SetColorSpeed2Modifiers(0.2, 0.2);
    End;

    This part :
    Simba Code:
    Result := True;


    does it matter than im not using smart right now as im just testing it

  2. #2
    Join Date
    Jul 2010
    Posts
    1,115
    Mentioned
    1 Post(s)
    Quoted
    10 Post(s)

    Default

    Function FindYew: Integer; should be
    Function FindYew: Boolean;

  3. #3
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default

    thanks +rep

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
  •