Results 1 to 12 of 12

Thread: Why is this code not logging me in?

  1. #1
    Join Date
    Apr 2013
    Location
    Belgium
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default Why is this code not logging me in?

    Code:
    program New;
    {$DEFINE SMART8}
    {$i srl/srl.simba}
    
    Procedure DeclarePlayers;
    Begin
      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;
    
      Players[0].Name := '';
      Players[0].Pass := '';
      Players[0].Nick := '';
      Players[0].Active := True;
    End;
    
    
    begin
      SetUpSRL;
      ActivateClient;
      DeclarePlayers;
      LogInPlayer;
    end.
    It loads SMART but doesn't log me in. I obviously edited out name/pass/nick.


    Thanks.
    Use the "Reply With Quote" option when responding to my posts so that I get a notification, otherwise I won't respond.

  2. #2
    Join Date
    Jan 2013
    Posts
    294
    Mentioned
    1 Post(s)
    Quoted
    121 Post(s)

    Default

    try putting declareplayers before everything else?

  3. #3
    Join Date
    Sep 2010
    Location
    Finland
    Posts
    299
    Mentioned
    8 Post(s)
    Quoted
    37 Post(s)

    Default

    Quote Originally Posted by BelgianFries View Post
    //snip
    It loads SMART but doesn't log me in. I obviously edited out name/pass/nick.


    Thanks.
    Are your graphics settings correct? Min detail and max brightness?

    Also ActivateClient isn't necessary, since you are using SMART.
    Rusting away

  4. #4
    Join Date
    Apr 2013
    Location
    Belgium
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Quote Originally Posted by dzpliu View Post
    try putting declareplayers before everything else?
    Quote Originally Posted by Smidqe View Post
    Are your graphics settings correct? Min detail and max brightness?

    Also ActivateClient isn't necessary, since you are using SMART.
    Putting DeclarePlayers before everything else didn't change anything. I'm loading 07 but my brightness is on max, yes. And I know ActivateClient wasn't needed, I'm following an old scripting tutorial, just forgot to remove it.

    Any other ideas to fix this?
    Use the "Reply With Quote" option when responding to my posts so that I get a notification, otherwise I won't respond.

  5. #5
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default

    Are you loading the SRL-OSR include?

    Forum account issues? Please send me a PM

  6. #6
    Join Date
    Apr 2013
    Location
    Belgium
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Fixed it by including this: {$I SRL-OSR/SRL.Simba}
    Last edited by BelgianFries; 04-03-2013 at 11:38 AM.
    Use the "Reply With Quote" option when responding to my posts so that I get a notification, otherwise I won't respond.

  7. #7
    Join Date
    Sep 2010
    Location
    Finland
    Posts
    299
    Mentioned
    8 Post(s)
    Quoted
    37 Post(s)

    Default

    Quote Originally Posted by BelgianFries View Post
    Putting DeclarePlayers before everything else didn't change anything. I'm loading 07 but my brightness is on max, yes. And I know ActivateClient wasn't needed, I'm following an old scripting tutorial, just forgot to remove it.

    Any other ideas to fix this?
    Okay, so you are using the 07. Then you can't use the SRL include, you need to use SRL-OSR include. Which can be downloaded here (download button is the cloud with zip inside it):
    https://github.com/SRL/SRL-OSR

    Extract the zip to Simba/Includes/ folder and rename the folder to SRL-OSR.

    Then change the code to following.
    Simba Code:
    program New;
    {$DEFINE SMART8}
    {$i SRL-OSR/srl.simba} //now it'll load the SRL-OSR, which is meant for the 07

    Procedure DeclarePlayers;
    Begin
      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;

      Players[0].Name := '';
      Players[0].Pass := '';
      Players[0].Nick := '';
      Players[0].Active := True;
    End;


    begin
      SetUpSRL;
      DeclarePlayers;
      LogInPlayer;
    end.

    E: Late
    Rusting away

  8. #8
    Join Date
    Apr 2013
    Location
    Belgium
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Quote Originally Posted by Justin View Post
    Are you loading the SRL-OSR include?
    Yeah, forgot that. Fixed it.
    Last edited by BelgianFries; 04-03-2013 at 11:43 AM.
    Use the "Reply With Quote" option when responding to my posts so that I get a notification, otherwise I won't respond.

  9. #9
    Join Date
    Apr 2013
    Location
    Belgium
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Quote Originally Posted by Smidqe View Post
    Okay, so you are using the 07. Then you can't use the SRL include, you need to use SRL-OSR include. Which can be downloaded here (download button is the cloud with zip inside it):
    https://github.com/SRL/SRL-OSR

    Extract the zip to Simba/Includes/ folder and rename the folder to SRL-OSR.

    Then change the code to following.
    Simba Code:
    program New;
    {$DEFINE SMART8}
    {$i SRL-OSR/srl.simba} //now it'll load the SRL-OSR, which is meant for the 07

    Procedure DeclarePlayers;
    Begin
      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;

      Players[0].Name := '';
      Players[0].Pass := '';
      Players[0].Nick := '';
      Players[0].Active := True;
    End;


    begin
      SetUpSRL;
      DeclarePlayers;
      LogInPlayer;
    end.

    E: Late
    I already had it downloaded, just didn't include it in my script. Thanks for your effort anyway.
    Use the "Reply With Quote" option when responding to my posts so that I get a notification, otherwise I won't respond.

  10. #10
    Join Date
    Jul 2012
    Posts
    437
    Mentioned
    10 Post(s)
    Quoted
    165 Post(s)

    Default

    Quote Originally Posted by BelgianFries View Post
    Yeah, forgot that. Fixed it.

    Also, I accidentally copy/pasted my code while it still contained my username/pass and posted this thread. I edited it out after 5 seconds or so and now someone is on my account. That guy was fast.
    if he takes anything pm an admin the ip screenshot

  11. #11
    Join Date
    Apr 2013
    Location
    Belgium
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Quote Originally Posted by tealc View Post
    if he takes anything pm an admin the ip screenshot
    There was nothing on it anyway, just an account to test scripts. Anyways I logged back in and it still showed my IP so it was probably just a bug.
    Use the "Reply With Quote" option when responding to my posts so that I get a notification, otherwise I won't respond.

  12. #12
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default

    Quote Originally Posted by BelgianFries View Post
    There was nothing on it anyway, just an account to test scripts. Anyways I logged back in and it still showed my IP so it was probably just a bug.
    If you find that someone did access your account, let me know and I'll find out who it was

    Forum account issues? Please send me a PM

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
  •