Results 1 to 5 of 5

Thread: So, 'Identifier expected'

  1. #1
    Join Date
    Dec 2011
    Posts
    57
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default So, 'Identifier expected'

    Well, I have given up on using the 'OpenBank' procedure, as that has failed, and begun creating a custom bank opener.
    Simba Code:
    program OpenMehBank;

    {$DEFINE Smart}
    {$i SRL\SRL.scar}
    {$i sps/sps.simba}

    procedure DeclarePlayers;
    begin
      HowManyPlayers:= 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;

      Players[0].Name      := 'nevermind this!';
      Players[0].Pass      := '';
      Players[0].Nick      := '';
      Players[0].Pin       := '';
      Players[0].Active    := true;
      LoginPlayer
    end;

    procedure Bankit;
    var x, y: integer;
    begin
        FindNormalRandoms;
        if FindObjCustom(x, y, ['ank'],[3218210, 4074031, 5059387, 4270897, 4073775, 3677991, 5322302, 4205359, 4402227, 4073775, 4533813, 4205361, 4533813, 4730934], 35) then
        begin
          Mouse(x, y, 0, 0, false);
          ChooseOption('hop');
    end;



    begin
       SetupSRL;
       DeclarePlayers;
       LoginPlayer;
       Bankit;
    end.

    I know this is very basic.. just opening a bank xD, but I have already finished the rest of my script, and this is really annoying me.

    I get :'Identifier expected at line 38'

    Now, what does Identifier expected actually mean, and how can i fix

    Thanks !
    Last edited by i need to bot!; 01-14-2012 at 12:54 PM.

  2. #2
    Join Date
    May 2007
    Location
    UK
    Posts
    4,007
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    You are missing an end:
    Simba Code:
    begin
          Mouse(x, y, 0, 0, false);
          ChooseOption('hop');
    end;

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

    Default

    Quote Originally Posted by i need to bot! View Post
    Well, I have given up on using the 'OpenBank' procedure, as that has failed, and begun creating a custom bank opener.
    I know this is very basic.. just opening a bank xD, but I have already finished the rest of my script, and this is really annoying me.

    I get :'Identifier expected at line 38'

    Now, what does Identifier expected actually mean, and how can i fix

    Thanks !
    You are missing a end.
    E: Gah.. too late

    Simba Code:
    procedure Bankit;
    var x, y: integer;
    begin
        FindNormalRandoms;
        if FindObjCustom(x, y, ['ank'],[3218210, 4074031, 5059387, 4270897, 4073775, 3677991, 5322302, 4205359, 4402227, 4073775, 4533813, 4205361, 4533813, 4730934], 35) then
        begin
          Mouse(x, y, 0, 0, false);
          ChooseOption('hop');
        end; // You forgot a end here
    end;
    Rusting away

  4. #4
    Join Date
    Dec 2011
    Posts
    57
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks!

  5. #5
    Join Date
    Dec 2011
    Posts
    57
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Spose it still wont work cuz of the update

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
  •