Results 1 to 5 of 5

Thread: TPA problems

  1. #1
    Join Date
    Dec 2006
    Location
    Canada, BC
    Posts
    728
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default TPA problems

    hey ok, i was trying to create a TPA and i keep getting this error
    SCAR Code:
    Failed when compiling
    Line 13: [Error] (13:49): Unknown identifier 'MSX1' in script

    this is my TPA:
    SCAR Code:
    program New;
    {.include SRL\SRL.Scar} //inlcude lol

    Function FindWhatever: Boolean; //lol lag(function name)

    var
       Wx, Wy: integer; //same as x/y but im using W as classification
       TPA: TpointArray; //Declares TPA as a TPointArray must be TPA!!
       ATPA: T2DPointArray; //contains teh TPA after splitting it.
       I: integer; //sett the point length using this.

    begin
      FindColorsSpiralTolerance(Wx, Wy, TPA, 1523254, MSX1, MSY1, MSX2, MSY2, 16); //i got that error last time i tried to do a TPA tutorial lol
       begin
         ATPA := SplitTPA(TPA, 30); //Contains the TPA after splitting , it splits the TPA into 30 pixels no
          For I :=0 To high(ATPA) Do //Just set the array lenght (amount of colors usually)
           if MiddleTPAEx(ATPA[i], Wx, Wy) then
            MMouse(Wx, Wy, 3, 3);
             if IsUpText('ew') then
              begin
                Mouse(Wx, Wy, 2, 2, true);
                Result := true; //do you get this? umm, the result = true makes FindWhatever = true yea u have to do that always in :Boolean
              end else
             Result := false; //therefore making it false
             Exit; //exit tpa i dont think this mattersers        Go to SRL forums>> OKScripting help
       end;
    end;

    begin
      SetupSRL;
      ActivateClient;
      Wait(300);
      FindWhatever;
    end.
    Lance. Da. Pants.

  2. #2
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    change this
    SCAR Code:
    {.include SRL\SRL.Scar} //inlcude lol
    to this
    SCAR Code:
    {.include SRL\SRL.Scar}
    the comments mess up the include calling...

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

    Default

    hmm.. works for me.. :\

  4. #4
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    it shouldn't... with exactly what he gave you... my fix works!

  5. #5
    Join Date
    Dec 2006
    Location
    Canada, BC
    Posts
    728
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks morman! it worked =]
    Lance. Da. Pants.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. SQL Problems. Please help!
    By Da 0wner in forum Web Development
    Replies: 10
    Last Post: 01-22-2009, 02:03 AM
  2. Computer problems... Terrible computer problems...
    By Jason2gs in forum News and General
    Replies: 22
    Last Post: 04-26-2007, 12:02 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
  •