Results 1 to 3 of 3

Thread: [Error] (1:1): period ('.') expected at line 0

  1. #1
    Join Date
    Aug 2007
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default [Error] (1:1): period ('.') expected at line 0

    I'm a little frustrated at what is probably a juvenile mistake. I'm getting "[Error] (1:1): period ('.') expected at line 0" in the following script I'm working on:

    Simba Code:
    program Picker;
    {$i srl/srl/misc/smart.simba}
    {$i srl/srl.simba}
    {$i sps/sps.simba}
    Var
      myPath:TPointArray;

      procedure DeclarePlayers;
    begin
      HowManyPlayers := 1; // Set the number of players you are using
      NumberOfPlayers(HowManyPlayers); // Don't touch
      CurrentPlayer := 0; // This is the player to start with; the first player will always be 0

      Players[0].Name := ''"; // Username
      Players[0].Pass := '"'; // Password
      Players[0].Active := True; // Set to true if you want to use Player 0
      Players[0].Pin := ''; // Leave blank if the player doesn't have a bank pin
    end;

    procedure SetupLogin;
    begin
      Smart_Server := 9;
      Smart_Members := True;
      Smart_Signed := True;
      Smart_SuperDetail := False;
      SetupSRL;
      DeclarePlayers;
      LoginPlayer; //  Logging in...
    end;

    begin
      SetupSRL;
      SetupLogin;
      SPS_Setup(RUNESCAPE_SURFACE,['10_7','12_7','12_6','12_5','12_4','12_3','12_2','10_2','11_3','11_5','11_6','11_7']);
      myPath := [Point(4851, 2967), Point(4917, 2940), Point(4963, 2906), Point(4962, 2850), Point(4990, 2796),
      Point(5012, 2751), Point(5008, 2695), Point(5002, 2632), Point(4993, 2571)];
      SPS_WalkPath(myPath);
    end

    Any help is appreciated

  2. #2
    Join Date
    Feb 2006
    Posts
    3,044
    Mentioned
    4 Post(s)
    Quoted
    21 Post(s)

    Default

    Simba Code:
    program Picker;
    {$i srl/srl/misc/smart.simba}
    {$i srl/srl.simba}
    {$i sps/sps.simba}
    Var
      myPath:TPointArray;

      procedure DeclarePlayers;
    begin
      HowManyPlayers := 1; // Set the number of players you are using
      NumberOfPlayers(HowManyPlayers); // Don't touch
      CurrentPlayer := 0; // This is the player to start with; the first player will always be 0

      Players[0].Name := ''; // Username
      Players[0].Pass := '"'; // Password
      Players[0].Active := True; // Set to true if you want to use Player 0
      Players[0].Pin := ''; // Leave blank if the player doesn't have a bank pin
    end;

    procedure SetupLogin;
    begin
      Smart_Server := 9;
      Smart_Members := True;
      Smart_Signed := True;
      Smart_SuperDetail := False;
      SetupSRL;
      DeclarePlayers;
      LoginPlayer; //  Logging in...
    end;

    begin
      SetupSRL;
      SetupLogin;
      SPS_Setup(RUNESCAPE_SURFACE,['10_7','12_7','12_6','12_5','12_4','12_3','12_2','10_2','11_3','11_5','11_6','11_7']);
      myPath := [Point(4851, 2967), Point(4917, 2940), Point(4963, 2906), Point(4962, 2850), Point(4990, 2796),
      Point(5012, 2751), Point(5008, 2695), Point(5002, 2632), Point(4993, 2571)];
      SPS_WalkPath(myPath);
    end.


    You missed "." from the end

    ~Home

  3. #3
    Join Date
    Aug 2007
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Herp derp. Wow. Thank you!

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
  •