Results 1 to 3 of 3

Thread: I need help for Declaring the players

  1. #1
    Join Date
    Dec 2007
    Posts
    2,766
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default I need help for Declaring the players

    Okay i got this problem... I can't use :
    -AntiRandoms
    -LoginPlayer function

    This is the error found in the Login :
    SCAR Code:
    [Runtime Error] : Out Of Range in line 73 in script C:\Program Files\SCAR 3.15\includes\SRL/SRL/Core/Login.scar

    Hmmm these are the lines 70-76 of the Login.scar file :
    SCAR Code:
    OneActive := False;
      if LoggedIn = False then
      begin;
        if (not (Players[CurrentPlayer].Active)) then
        begin;
          WriteLn('Current player is not Active...');
          Repeat

    Here is my DeclarePlayers procedure :
    SCAR Code:
    procedure DeclarePlayers;
    begin
      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;

      Players[0].Name := 'my name';//your name
      Players[0].Pass := 'my pass';//your password
      Players[0].Nick := 'my nick';//3-4 letters of your name
      Players[0].Active := True;
    end;

    If there is anything to do or an error i made... please tell.

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

    Default

    Did you call 'DeclarePlayers' in main loop before logging on?


    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
    Dec 2007
    Posts
    2,766
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default

    O M G O S H W H A T A N S T U P I D E R R O R... THANKS

    please close this ? ^^

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Help with declaring players
    By Tom_Gower in forum OSR Help
    Replies: 7
    Last Post: 09-25-2008, 02:38 AM
  2. Declaring new data type
    By Repentinus in forum C/C++ Help and Tutorials
    Replies: 9
    Last Post: 04-17-2008, 03:35 PM
  3. just need some help declaring players lol :D
    By nibblit in forum OSR Help
    Replies: 4
    Last Post: 07-11-2007, 01:26 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
  •