SRL Archive - SRL Archives

Modify GameTab();


Cigue

2010-01-13 21:23:09

original :

function GameTab(Tab: Integer): Boolean;
var
tP: TPoint;
T, Tries: Integer;

begin
blah;
end;

modified :

function GameTab(Tab: Integer): Boolean;
var
tP: TPoint;
T, Tries: Integer;

begin
if GetCurrentTab <> Tab then
begin
blah;
end
end;

YoHoJo

2010-01-13 21:31:48

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

Cigue

2010-01-13 21:37:22

Negative. or else check doesn't works.

YoHoJo

2010-01-13 21:42:05

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

That checks for it right there :D. 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?

Cigue

2010-01-13 21:43:13

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 :/