Results 1 to 5 of 5

Thread: VERY basic question

  1. #1
    Join Date
    Sep 2009
    Posts
    580
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default VERY basic question

    SCAR Code:
    if not LoggedIn then
      begin
        if not RSReady then
          while not RSReady do Wait(200+random(500));
      end;

    this is an infinite loop when I'm not logged in but RS is loaded. Why?
    I don't check this place often, sorry.

    Currently working on - Software Engineering degree. Thank you SRL for showing me the one true path

  2. #2
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Cigue View Post
    SCAR Code:
    if not LoggedIn then
      begin
        if not RSReady then
          while not RSReady do Wait(200+random(500));
      end;

    this is an infinite loop when I'm not logged in but RS is loaded. Why?
    Would be a good idea to have a time marker, are you on safe mode? Test WriteLn(BoolToStr(RSReady));

  3. #3
    Join Date
    Sep 2009
    Posts
    580
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    A time marker would be useless here because if RS isn't loaded, you don't want the script to do anything x]
    I don't check this place often, sorry.

    Currently working on - Software Engineering degree. Thank you SRL for showing me the one true path

  4. #4
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Sounds like RSReady isn't working properly for you. Lemme see if it works for me.

    Edit: Yeah, it's not working properly. Try replacing it with this:
    SCAR Code:
    function RSReady: Boolean;
    begin
      Result := (LoggedIn) or (GetColor(375, 626) = 8630512);
    end;
    Last edited by senrath; 02-13-2010 at 12:58 AM.

  5. #5
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    {.Include SRL\SRL.SCAR}

    begin
      SetUpSRL;
      ActivateClient;
      Wait(1000);
      WriteLn(BoolToStr(RSReady));
    end.

    Returns true for me.

    Make sure you are on safe mode.
    Last edited by Wanted; 02-13-2010 at 02:30 AM.

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
  •