Results 1 to 13 of 13

Thread: if LoggedIn

  1. #1
    Join Date
    May 2006
    Location
    Helsinki, Finland (capital)
    Posts
    269
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default if LoggedIn

    Why this:
    Code:
         if LoggedIn then Exit;
    wont work?

  2. #2
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    Why do you say it doesn't work?


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

  3. #3
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Works fine here. Surely you'd want
    SCAR Code:
    if (Not LoggedIn) then Exit;
    ?

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  4. #4
    Join Date
    May 2006
    Location
    Helsinki, Finland (capital)
    Posts
    269
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Nope, its at the beginning of the script and when I'm logged in, it just skips that and starts the login procedure..

  5. #5
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    That's because you have if(LoggedIn) then Exit;. It's always going to skip it if you start logged in. Use: if(not(LoggedIn)) then LoginPlayer; or Exit; instead.
    :-)

  6. #6
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    or..

    SCAR Code:
    begin
      if LoggedIn then
      begin
        MainLoop;
      end else
      LoginPlayer;
    end;

    But you should really do.

    SCAR Code:
    begin
      if(Not LoggedIn)then LoginPlayer;
      MainLoop;
    end;

    Looks alot better, and easier :P

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  7. #7
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    or if you really want to simple it just go:

    SCAR Code:
    begin
      LoginPlayer; //LoginPlayer already has if LoggedIn the Exit
      MainLoop;
    end;

  8. #8
    Join Date
    May 2006
    Location
    Helsinki, Finland (capital)
    Posts
    269
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You don't understand.. I don't use srls multi player things, because I don't know how those works, I just want the script to check, if the character is already logged in, if it is, then it would log out it..

  9. #9
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Eicca View Post
    You don't understand.. I don't use srls multi player things, because I don't know how those works, I just want the script to check, if the character is already logged in, if it is, then it would log out it..
    if LoggedIn then
    LogOut;

  10. #10
    Join Date
    Mar 2007
    Location
    Netherlands->Amersfoort.
    Posts
    1,615
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Eicca View Post
    You don't understand.. I don't use srls multi player things, because I don't know how those works, I just want the script to check, if the character is already logged in, if it is, then it would log out it..
    SCAR Code:
    exit

    exit means that it Exit the current procedure.

  11. #11
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Eicca View Post
    You don't understand.. I don't use srls multi player things, because I don't know how those works, I just want the script to check, if the character is already logged in, if it is, then it would log out it..
    Please tell me how you are SRL member then?. If i remember correctly, you require to understand SRL Multiplayer.

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  12. #12
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by rogeruk View Post
    Please tell me how you are SRL member then?. If i remember correctly, you require to understand SRL Multiplayer.
    I didnt know a shit about SRL multiplayer when I got SRL member status, I barely knew multiplayer exists.

  13. #13
    Join Date
    May 2006
    Location
    Helsinki, Finland (capital)
    Posts
    269
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by rikjess View Post
    SCAR Code:
    exit

    exit means that it Exit the current procedure.
    Oh okay Thanks, I'll use the logout thing.

    EDIT: btw it won't exit the procedure, but I'll try to make this multiplayer.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. If(Not(LoggedIn)) then Exit;
    By theo in forum OSR Help
    Replies: 4
    Last Post: 10-24-2008, 05:50 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
  •