Results 1 to 2 of 2

Thread: settimeout error. (noobie question)

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

    Default settimeout error. (noobie question)

    SetTimeOut isn't working in my script, because in the debug section, it just shows
    Successfully compiled
    Successfully executed
    SCAR Code:
    program New;

    Procedure ProgressReport;
    begin
    ClearDebug;
    Writeln('waited for 133 seconds.');

    end;

    begin
    SetTimeout(133,'ProgressReport');
    end.





    Sorry for spamming this forum with my ultra noobie questions

  2. #2
    Join Date
    May 2006
    Posts
    1,230
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Its because the script ends after it sets the time out, not having time to wait 133 seconds.

    SCAR Code:
    program New;
     
    Procedure ProgressReport;
    begin
      ClearDebug;
      Writeln('waited for 133 seconds.');
    end;
     
    begin
      SetTimeout(133,'ProgressReport');
      repeat
        wait(1000)
      until false
    end.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. SetTimeOut()
    By marpis in forum OSR Help
    Replies: 3
    Last Post: 02-11-2009, 12:52 PM
  2. Noobie Help
    By enjoi877 in forum OSR Help
    Replies: 2
    Last Post: 10-25-2008, 01:57 AM
  3. quick noobie question
    By shadowpwner in forum OSR Help
    Replies: 5
    Last Post: 08-13-2007, 08:47 PM

Posting Permissions

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