Results 1 to 2 of 2

Thread: help with proc

  1. #1
    Join Date
    May 2007
    Posts
    468
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default help with proc

    can someone make me a procedure that checks the time, and if the time exceeds one hour then the script logs out.
    Originally Posted by YoHoJo
    I like hentai.

  2. #2
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    SCAR Code:
    var
      T: Integer;
    procedure CheckTime;
    begin
      if(T = 0)then
        T:= GetSystemTime;
      if((GetSystemTime - T) >= 3600000)then
      begin
        Logout;
        T:= 0;
      end;
    end;
    I assume that you want each player to run for an hour?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. What is wrong with Proc?
    By TheGodfather in forum OSR Help
    Replies: 2
    Last Post: 02-15-2007, 06:36 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
  •