Results 1 to 5 of 5

Thread: ScriptTimeout.

  1. #1
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default ScriptTimeout.

    What would I put in the Until(...) tag to make my script turn off after a certain amount of time?

  2. #2
    Join Date
    Jan 2007
    Posts
    834
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    um, i thkn this is what your talking about...

    SCAR Code:
    procedure blah;
    begin
    If(something=?)then
    begin
    wait(Timeout)
    end;

    That should be what your talking about i think...

  3. #3
    Join Date
    Jul 2006
    Location
    NY
    Posts
    371
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    procedure WaitItOut;
     var maxtime: integer;
    begin
      MarkTime(maxtime);
      while (TimeFromMark(maxtime) < 20000) do
        FindNormalRandoms;
    end;

    Use marktime, timefrommark procedures. There the best in determining time. It doesnt need to be in a procedure like this, this is just an example.

  4. #4
    Join Date
    Oct 2006
    Location
    Ontario,Canada
    Posts
    1,718
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    marktime(mark)//at beginning of script or whatever.
    repeat
    //code
    until (timefrommark(mark) > {some time})

    edit:you need the repeat though or it wont work

  5. #5
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Thanks guys

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
  •