Results 1 to 4 of 4

Thread: TPA and Const question

  1. #1
    Join Date
    Nov 2008
    Location
    Arizona
    Posts
    236
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default TPA and Const question

    If im using a const for rock colors in a mining script and using procedure to declare colors, can i use that const in a TPA function

    ex. FindColorsTolerance(RockTPA, RockType(CONST), MSx1, MSy1, MSx2, MSy2, 10);

    sorry if this is a bit confusing and thanks for help. =]
    I'm Back.

  2. #2
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Yea

    Like
    SCAR Code:
    Function ReturnCol(which: String): Integer;
    begin
      case lowercase(which) of
        'addy': Result := 325345;
      end;
    end;

    Or something?
    FindColorsTolerance(TPA, ReturnCol('which')..);

    something like that?
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  3. #3
    Join Date
    Nov 2008
    Location
    Arizona
    Posts
    236
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    actually i tested it and it worked to perfection just was unsure of it. =] thanks for help.
    Last edited by [JS]; 08-08-2009 at 02:25 PM.
    I'm Back.

  4. #4
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    No problem. join the IRC. Stuff like that can be answered instantaniously
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

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
  •