Results 1 to 11 of 11

Thread: Setting TPA help plz!

  1. #1
    Join Date
    Oct 2006
    Posts
    1,211
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Setting TPA help plz!

    Ok, yah im trying to set a TPA's points and I get errors when I try this:

    ButtonTPA[0].x := 166; ButtonTPA[0].y := 91;

    Obviously im doing it wrong. How do I set a TPA's coords?
    Extinct.

    Formally known as Drags111.

  2. #2
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    That's correct. Your error is somewhere else. Mind posting a few lines above and below?

  3. #3
    Join Date
    Oct 2006
    Posts
    1,211
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    var
      ButtonTPA: TPointArray;
      i, randnum, clicked: integer;
    begin
      if not(FindColorTolerance(x, y, 2070783, 168, 15, 287, 37, 10))then Exit;
      ButtonTPA[0].x := 166; ButtonTPA[0].y := 91; <--- line 55
      ButtonTPA[1].x := 166; ButtonTPA[1].y := 128;
      ButtonTPA[2].x := 166; ButtonTPA[2].y := 160;
      ButtonTPA[3].x := 166; ButtonTPA[3].y := 196;

    and error is those Out of range on line 55 blah blah...
    Extinct.

    Formally known as Drags111.

  4. #4
    Join Date
    Jul 2007
    Location
    Massachusetts
    Posts
    896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Forgive me if I sound nubbish, I haven't scripted in like 6 months. Don't you have to declare the length of the array?

  5. #5
    Join Date
    Oct 2006
    Posts
    1,211
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    how do i do that?
    Extinct.

    Formally known as Drags111.

  6. #6
    Join Date
    Jan 2007
    Location
    Illinois.. >.<
    Posts
    1,158
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yeah, Macrosoft, you do..
    SCAR Code:
    SetArrayLength(ButtonTPA, {how long you want the array})

  7. #7
    Join Date
    Oct 2006
    Posts
    1,211
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks!
    Extinct.

    Formally known as Drags111.

  8. #8
    Join Date
    Feb 2007
    Location
    Het ademt zwaar en moedeloos vannacht.
    Posts
    7,211
    Mentioned
    26 Post(s)
    Quoted
    72 Post(s)

    Default

    I made a new script, check it out!.

  9. #9
    Join Date
    Jul 2007
    Location
    Massachusetts
    Posts
    896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ohhhh, pwned!!! *does dorky dance*

  10. #10
    Join Date
    Oct 2006
    Posts
    1,211
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yah i read all those, and I know how to use them i just forgot about setting the length :P thanks all!
    Extinct.

    Formally known as Drags111.

  11. #11
    Join Date
    Jul 2007
    Location
    Massachusetts
    Posts
    896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yeah lol, I was beginning to wonder how you got membership. Don't worry, even I make mistakes ().

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Setting up AI, of a sort?
    By Sandstorm in forum OSR Help
    Replies: 4
    Last Post: 12-20-2008, 11:28 PM
  2. Setting Run
    By faster789 in forum OSR Help
    Replies: 9
    Last Post: 04-17-2008, 05:55 AM
  3. Need help setting up antirandoms;
    By Shock Norris in forum OSR Help
    Replies: 6
    Last Post: 09-20-2007, 05:55 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
  •