Results 1 to 4 of 4

Thread: help find identifier expected at line 26

  1. #1
    Join Date
    Mar 2013
    Posts
    94
    Mentioned
    0 Post(s)
    Quoted
    22 Post(s)

    Default help find identifier expected at line 26

    Can someone help me get rid of this error message:
    [Error] C:\Users\Carlson\Desktop\Arlen2\Arlen\Runescape\Ol d School Runescape\Simba\OSRS Simba Scripts\Developing scripts\Law run\Law run 01.simba(27:88): Identifier expected at line 26
    Compiling failed.
    Last edited by rsbots2013; 05-12-2013 at 10:27 AM.

  2. #2
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Quote Originally Posted by rsbots2013 View Post
    Can someone help me get rid of this error message:
    [Error] C:\Users\Carlson\Desktop\Arlen2\Arlen\Runescape\Ol d School Runescape\Simba\OSRS Simba Scripts\Developing scripts\Law run\Law run 01.simba(27:88): Identifier expected at line 26
    Compiling failed.

    Simba Code:
    Program New;


    {$DEFINE SMART8}
    {$I SRL/SRL.Simba}
    {$I P07Include.Simba}

    var
     x, y, FromBank1 : integer;
     aFound : extended;

    //LOGIN INFO STUFF
    Procedure P07_DeclarePlayer;
    Begin
      P07_PlayerName:='username';
      P07_PlayerPass:='password';
    End;

    Procedure LoadDTM;
     begin
      FromBank1 := DTMFromString('mrAAAAHic42BgYHBhYmAwBmIHIA4EYi8g9gZieyC2AOInQDUvgfg6EN8H4ttA/AaIPwHxPSDurK8Dkow48S8G/AC3TgiGAQCYQgvW');
     end;

    Procedure WalkTo;
      begin
       FindDTMRotated(FromBank1, x, y, MMX1, MMY1, MMX2, MMY2, -Pi/2, Pi/2, Pi/30, aFound) then
         begin
          Mouse(X, Y, 0, 0, true);
          //P07_ChooseOptionMulti(['ine']);
         End;
      end;


    Begin
      SetupSRL;
      P07_DeclarePlayer;
      SetupP07Include;
      ActivateClient;
      Wait(2000);
      If (Not P07_LoggedIn) Then
        P07_LogInPlayer;
      P07_MakeCameraAngleHigh;
      P07_MakeCompassNorth;
      LoadDTM
      FreeDTM(FromBank1)
    End.

    You need an If before FindDTMRotated

  3. #3
    Join Date
    Jan 2013
    Posts
    29
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    line 26 FindDTMRotated is a function that returns a boolean.
    I think you mean to put
    if FindDTMRotated(FromBank1, x, y, MMX1, MMY1, MMX2, MMY2, -Pi/2, Pi/2, Pi/30, aFound) then

    Also you forgot some semicolons near the end

  4. #4
    Join Date
    Mar 2013
    Posts
    94
    Mentioned
    0 Post(s)
    Quoted
    22 Post(s)

    Default

    Omg 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
  •