Page 2 of 2 FirstFirst 12
Results 26 to 31 of 31

Thread: CloseWindow

  1. #26
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    wouldn't combineTPA give an error if one of the TPAs is empty? Try...Except perhaps?

    edit:
    SCAR Code:
    if ((High(a) > 0)and(High(b) > 0)) then
        begin
          Pa := GetTPABounds(CombineTPA(A, B));
          Result := (Pa.x1 >= 100);

    //or

        if ((High(a) + High(b)) > 0) then
        begin
          try Pa := GetTPABounds(CombineTPA(A, B)); except exit; end;
          Result := (Pa.x1 >= 100);
    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  2. #27
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    I dont think so, it will combine 0 and whatever it should not result an error becuase it is used in findfight aswell . Apart from that I use it in a procedure where usually 0 comes from combining two TPA's (which I have yet to fix ) but the script still carries on.
    Last edited by Naum; 05-22-2009 at 09:28 PM.

  3. #28
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    PLEASE READ, THE CLOSE WINDOW IN SRL OPENDEV DOESN'T WORK FOR THE SKILLS WINDOW atm.

  4. #29
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    CombineTPA does not error if there is an empty TPA.

  5. #30
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Ugh I'm trying to fix this.. there are more issues than anticipated.
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  6. #31
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Works fine good job
    Last edited by Naum; 05-26-2009 at 07:54 PM.

Page 2 of 2 FirstFirst 12

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
  •