Results 1 to 5 of 5

Thread: Modify GameTab();

  1. #1
    Join Date
    Sep 2009
    Posts
    580
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Modify GameTab();

    original :

    SCAR Code:
    function GameTab(Tab: Integer): Boolean;
    var
      tP: TPoint;
      T, Tries: Integer;
     
    begin
    blah;
    end;

    modified :

    SCAR Code:
    function GameTab(Tab: Integer): Boolean;
    var
      tP: TPoint;
      T, Tries: Integer;
     
    begin
      if GetCurrentTab <> Tab then
      begin
        blah;
      end
    end;
    I don't check this place often, sorry.

    Currently working on - Software Engineering degree. Thank you SRL for showing me the one true path

  2. #2
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    GameTab already checks to see if your wanted tab isn't current tab?

  3. #3
    Join Date
    Sep 2009
    Posts
    580
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Negative. or else check doesn't works.
    I don't check this place often, sorry.

    Currently working on - Software Engineering degree. Thank you SRL for showing me the one true path

  4. #4
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    SCAR Code:
    Result := (GetCurrentTab = Tab);
      if (Result) then exit;

    That checks for it right there . And I'm quite sure it's working too, was yesterday at least? Hmmm, Sure it wasn't just a one time mess up? Try again?

  5. #5
    Join Date
    Sep 2009
    Posts
    580
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    For some reason I've got 10+ errors I've never seen before since 24 hours, so this could be a symptom of SCAR dying on me :/
    I don't check this place often, sorry.

    Currently working on - Software Engineering degree. Thank you SRL for showing me the one true path

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
  •