Results 1 to 5 of 5

Thread: why do i get this error when compiling??

  1. #1
    Join Date
    May 2012
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default why do i get this error when compiling??

    [Error] C:\Simba\Includes\sps/sps.simba(43:35): Unknown identifier 'MMCX' at line 42
    Compiling failed.

    Simba opens a new tab called "sps".
    the part it is having a fit over:
    Simba Code:
    begin
      try
        Result := TMufasaBitmap.Create;
        Result.SetSize(150, 150);

        c := getTClient;
        Result.CopyClientToBitmap(
            c.IOManager, false, 0, 0, MMCX-75, MMCY-75, MMCX+75, MMCY+75
          );

      except
        Writeln('SPS_GatherMinimap ERROR: '+ExceptionToString(ExceptionType, ExceptionParam));
      end;
    end;
    Last edited by Steingraber; 05-29-2012 at 03:44 AM.

  2. #2
    Join Date
    Oct 2011
    Posts
    805
    Mentioned
    21 Post(s)
    Quoted
    152 Post(s)

  3. #3
    Join Date
    May 2012
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Simba Code:
    program ll;
    {$i sps/sps.simba}
    {$I SRL/SRL/Misc/Smart.simba}
    {$I SRL/SRL.simba}
    {$i SRL/SRL/misc/paintsmart.simba}

    procedure DeclarePlayers;
    begin



      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;

      Players[0].Name := ''; // Username
      Players[0].Pass := ''; // Password
      Players[0].Active := True;
      Players[0].Pin := '5723';
      Players[0].BoxRewards := ['Xp', 'mote', 'ostume', 'oins', 'aphire', 'ssence'];
    end;// declare players

    procedure SetupLogin;
    begin
      ClearDebug;
      Smart_Server := 87;
      Smart_Members := True;
      Smart_Signed := True;
      Smart_SuperDetail := False;
      SetupSRL;
    end;

    Procedure Walktopit;
    Var
      PitPath:TPointArray;
    begin
      If Not LoggedIn Then Exit;
      If FindNormalRandoms Then Exit;

      Writeln('Walking to pit.');
      SPS_Setup(RUNESCAPE_SURFACE,['5_10']);
      PitPath := [Point(284, 300), Point(252, 283), Point(214, 278),
                  Point(177, 276), Point(140, 306), Point(82, 310),
                  Point(35, 296), Point(24, 258)];
      SPS_WalkPath(PitPath);
    end;

    Begin
      DeclarePlayers;
      SetupLogin;
      Walktopit;
      end.

    This is what I am trying to compile.

  4. #4
    Join Date
    Oct 2011
    Posts
    805
    Mentioned
    21 Post(s)
    Quoted
    152 Post(s)

  5. #5
    Join Date
    May 2012
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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
  •