k this time am trying another angel.
i have an interger, which i would like 2 call runs done
i want scar to do something, e.g. logout. if that interger hasnt changed in the last hour. any1 got idea?
![]()
![]()
![]()
![]()
![]()
![]()
k this time am trying another angel.
i have an interger, which i would like 2 call runs done
i want scar to do something, e.g. logout. if that interger hasnt changed in the last hour. any1 got idea?
![]()
![]()
![]()
![]()
![]()
![]()
Just make something like this.
SCAR Code:Function HasItChanged(TimeStarted, IntegerStart, IntegerCurrent: Integer): Boolean;
var
Current : Integer;
begin
Current := GetSystemTime; //gets current time..
if (Current - TimeStarted) >= 360000) then //if it's been longer than an hour since started..
if not (IntegerStart = IntegerCurrent) then Result := True;
//if it has changed then result is true
end;
Then to use would be like..
SCAR Code:var
x, StartTime, Start : Integer;
begin
StartTime := GetSystemTime; //put this when u want to start the timing..
x := 5; //example this would be your integer..
Start := x; //put it into a variable
//then later on..
x := 7;
//use it..
if HasItChanged(StartTime, Start, x) then Logout;
end.
If that makes sense??
Idk something like that![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)