Results 1 to 14 of 14

Thread: Missing identifier

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

    Default Missing identifier

    Code:
    Function Banking:
    begin
    SetAngle(SRL_ANGLE_HIGH);
    MakeCompass('W');
    WriteIn('Banking');
      OpenBankChestEdge(SRL_BANK_SW);
      repeat
        wait(randomrange(49,51));
       until(BankScreen or Pinscreen);
      If PinScreen then
                InPin(Players[CurrentPlayer].Pin);
      Mouse(655, 224, 3, 3, false);
      ChooseOption('All');
      Withdrawl(9, 0, 28);
      Wait(randomrange(400,700));
      CloseBank;
    end;
    Missing identifier at line 51 which is the second line of the code, 'begin'. any help would be appreciated.

  2. #2
    Join Date
    Dec 2011
    Location
    -bash
    Posts
    515
    Mentioned
    0 Post(s)
    Quoted
    27 Post(s)

    Default

    This is what you are missing on the first line
    Simba Code:
    Function Banking;

    You used a colon instead of a semi-colon...

    Also a suggestion?

    Simba Code:
    Procedure Banking;
    begin
    SetAngle(SRL_ANGLE_HIGH);
    //MakeCompass('W');
    WriteIn('Banking');
      If OpenBankChestEdge(SRL_BANK_SW) then
      repeat
        wait(randomrange(49,51));
       until(BankScreen or Pinscreen);
      If PinScreen then
                InPin(Players[CurrentPlayer].Pin);
      Mouse(655, 224, 3, 3, false);
      ChooseOption('All');
      Withdrawl(9, 0, 28);
      Wait(randomrange(400,700));
      If invFul then
        begin
      CloseBank;
       end else
      Banking;
    end;
    Last edited by Recursive; 05-31-2012 at 07:26 PM.

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

    Default

    Quote Originally Posted by Chig View Post
    This is what you are missing on the first line
    Simba Code:
    Function Banking;

    You used a colon instead of a semi-colon...
    thats a problem I fixed before this one, it asked for a colon. it's the line after which is requiring an indentifier?

  4. #4
    Join Date
    Dec 2011
    Location
    Hyrule
    Posts
    8,662
    Mentioned
    179 Post(s)
    Quoted
    1870 Post(s)

  5. #5
    Join Date
    Mar 2012
    Location
    Color :D
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Function returns something. It should be something like:

    Function Banking :Boolean;

    If you're using a procedure, then you can just:

    Procedure Banking;

  6. #6
    Join Date
    Dec 2011
    Location
    -bash
    Posts
    515
    Mentioned
    0 Post(s)
    Quoted
    27 Post(s)

    Default

    Quote Originally Posted by Liamwitdre View Post
    thats a problem I fixed before this one, it asked for a colon. it's the line after which is requiring an indentifier?
    K then make it a boolean function

    Simba Code:
    Function Banking: Boolean;

    Then make sure to use result := {true or false};

  7. #7
    Join Date
    May 2012
    Posts
    26
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by ashaman88 View Post
    Procedure Banking;
    Thankyou that worked now im having a problem at line 54

    Code:
    WriteIn('Banking');
    I'm a complete novice to scripting, but im trying my best

  8. #8
    Join Date
    Dec 2011
    Location
    -bash
    Posts
    515
    Mentioned
    0 Post(s)
    Quoted
    27 Post(s)

    Default

    Quote Originally Posted by Liamwitdre View Post
    Thankyou that worked now im having a problem at line 54

    Code:
    WriteIn('Banking');
    I'm a complete novice to scripting, but im trying my best

    Simba Code:
    Writeln('Banking');

    Means this: WriteLine := 'Bankin'

  9. #9
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    could you post the entire script?
    I'm 99% sure that we're helping this kid get around an anti-leach...

    seriously, WriteIn(''); and a function with no var being returned...
    looks like anti-leach to me, not a scripting error.

  10. #10
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    Check this tutorial out. It's pretty old but everything is still relevant.


    EDIT:

    It's WriteLn.
    Last edited by Rich; 05-31-2012 at 07:37 PM.
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  11. #11
    Join Date
    May 2012
    Posts
    26
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Rich View Post
    Check this tutorial out. It's pretty out but everything is still relevant.


    EDIT:

    It's WriteLn.
    Thanks for your help, i'll be taking a couple of notes from your tutorial aswell

  12. #12
    Join Date
    Mar 2012
    Location
    Color :D
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by footballjds View Post
    could you post the entire script?
    I'm 99% sure that we're helping this kid get around an anti-leach...

    seriously, WriteIn(''); and a function with no var being returned...
    looks like anti-leach to me, not a scripting error.
    Now that you said it, that makes sense

  13. #13
    Join Date
    May 2012
    Posts
    26
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by footballjds View Post
    could you post the entire script?
    I'm 99% sure that we're helping this kid get around an anti-leach...

    seriously, WriteIn(''); and a function with no var being returned...
    looks like anti-leach to me, not a scripting error.
    Easy mistakes when you've only been scripting for a matter of days. I used the basis of another script to help me get started hence the problems.

  14. #14
    Join Date
    Mar 2012
    Location
    Color :D
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Looks like a ring of duelling maker in our forum

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
  •