Results 1 to 2 of 2

Thread: bloody hell am stuck again!

  1. #1
    Join Date
    Jul 2007
    Posts
    124
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    bloody hell am stuck again!

    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?



  2. #2
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. What the hell...
    By BobboHobbo in forum News and General
    Replies: 6
    Last Post: 08-25-2007, 11:31 AM
  2. Why the Hell
    By Pwnd in forum News and General
    Replies: 11
    Last Post: 08-09-2007, 12:32 AM
  3. Stuck
    By RS Rebel in forum OSR Help
    Replies: 9
    Last Post: 07-03-2007, 09:27 AM
  4. hell
    By timtag1190 in forum Blogs and Writing
    Replies: 0
    Last Post: 12-29-2006, 04:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •