Results 1 to 10 of 10

Thread: Identifier Expected

  1. #1
    Join Date
    Feb 2007
    Location
    South East England
    Posts
    2,906
    Mentioned
    2 Post(s)
    Quoted
    8 Post(s)

    Default Identifier Expected

    PHP Code:
    {.include SRL/SRL.scar}
    {.include 
    SRL/SRL/Skill/WoodCutting.scar}


    const
    //------------------------Setup----------------------\\

    //-->Willow Colours<--\\

    WillowColour 0//Colour of Willow
    WillowColour2 0//Another Willow Colour
    WillowColour3 0//A third Willow Colour

    //-->Loads<--\\

    Loads 0//How many loads per player before switching

    {-------------------------------------------------------
                           
    Player Setup
    --------------------------------------------------------}

    procedure DeclarePlayers;
    begin
       HowManyPlayers 
    := 2//How many Players
       
    NumberOfPlayers(HowManyPlayers);
       
    CurrentPlayer :=0//Starting Player
       
       
    Players[0].Name := 'Username';
       
    Players[0].Pass := 'Password';
       
    Players[0].Nick := '3-4 letters of Username';
       
    Players[0].Active := True;
       
       
    Players[1].Name := 'Username';
       
    Players[1].Pass := 'Password';
       
    Players[1].Nick := '3-4 letters of Username';
       
    Players[1].Active := True;
       
    {----------------------------Do 
    Not Edit Below This----------------------------}

    var 
    LoadsNum;

    procedure Signature;
      
    begin
       ClearDebug
    ;
       
    writeln('      Torrents Willow Crusher&Banker      ');
       
    writeln(' _____                                _   ');
       
    writeln('(_   _)                              ( )_ ');
       
    writeln('  | |   _    _ __  _ __   __    ___  | ,_)');
       
    writeln('  | | / _`\ ( "__)( "__)/"__`\/" _ `\| |  ');
       
    writeln('  | |( (_) )| |   | |  (  ___/| ( ) || |_ ');
       
    writeln('  (_)`\___/ (_)   (_)  `\____)(_) (_) \__)');
       
    wait(2500 random(500));
      
    end;

    Procedure ToFProggy;
    begin
      ClearDebug
    ;
      
    Writeln(' Please Post Progress Reports &any problems ');
      
    Writeln('      From Wherever you got the script      ');
      
    Writeln('//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\');
      
    Writeln('//\\ Worked For : ' ScriptTime2(2));'     ');
      
    Writeln('//\\ Did :' IntToStr(LoadsNum)  + 'Loads  ');
      
    Writeln('//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\');
      
    Writeln('//\\   Thanks for Using my Script :D   //\\ ');
    end
    Ok, So thats the start to my Script, and I'm adding the colours next, but when I compile it at the moment it comes up with this:

    PHP Code:
    Line 40: [Error] (12540:1): Identifier expected in script 
    Line 40 being the
    Code:
    Var LoadsNum
    part, but I dont understand why it isnt working.

    Please help
    Jus' Lurkin'

  2. #2
    Join Date
    Oct 2006
    Posts
    1,190
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    add
    Code:
    var LoadsNum : integer;
    before the const that will fix it

    SCAR Code:
    {.include SRL/SRL.scar}
    {.include SRL/SRL/Skill/WoodCutting.scar}

    var LoadsNum : integer;


    const
    //------------------------Setup----------------------\\

    //-->Willow Colours<--\\

    WillowColour = 0; //Colour of Willow
    WillowColour2 = 0; //Another Willow Colour
    WillowColour3 = 0; //A third Willow Colour

    //-->Loads<--\\

    Loads = 0; //How many loads per player before switching

    {-------------------------------------------------------
                           Player Setup
    --------------------------------------------------------}


    procedure DeclarePlayers;
    begin
       HowManyPlayers := 2; //How many Players
       NumberOfPlayers(HowManyPlayers);
       CurrentPlayer :=0; //Starting Player

       Players[0].Name := 'Username';
       Players[0].Pass := 'Password';
       Players[0].Nick := '3-4 letters of Username';
       Players[0].Active := True;

       Players[1].Name := 'Username';
       Players[1].Pass := 'Password';
       Players[1].Nick := '3-4 letters of Username';
       Players[1].Active := True;

    {----------------------------Do Not Edit Below This----------------------------}



    procedure Signature;
      begin
       ClearDebug;
       writeln('      Torrents Willow Crusher&Banker      ');
       writeln(' _____                                _   ');
       writeln('(_   _)                              ( )_ ');
       writeln('  | |   _    _ __  _ __   __    ___  | ,_)');
       writeln('  | | / _`\ ( "__)( "__)/"__`\/" _ `\| |  ');
       writeln('  | |( (_) )| |   | |  (  ___/| ( ) || |_ ');
       writeln('  (_)`\___/ (_)   (_)  `\____)(_) (_) \__)');
       wait(2500 + random(500));
      end;

    Procedure ToFProggy;
    begin
      ClearDebug;
      Writeln(' Please Post Progress Reports &any problems ');
      Writeln('      From Wherever you got the script      ');
      Writeln('//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\');
      Writeln('//\\ Worked For : ' + ScriptTime2(2));'     ');
      Writeln('//\\ Did :' + IntToStr(LoadsNum)  + 'Loads  ');
      Writeln('//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\');
      Writeln('//\\   Thanks for Using my Script :D   //\\ ');
    end;

    also i just realized that there is no begin in that script

    rep me if this helped



  3. #3
    Join Date
    Dec 2006
    Location
    Boss central
    Posts
    811
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    or this

    SCAR Code:
    program yourscriptname;
    {.include SRL/SRL.scar}
    {.include SRL/SRL/Skill/WoodCutting.scar}


    const
    //------------------------Setup----------------------\\

    //-->Willow Colours<--\\

    WillowColour = 0; //Colour of Willow
    WillowColour2 = 0; //Another Willow Colour
    WillowColour3 = 0; //A third Willow Colour

    //-->Loads<--\\

    Loads = 0; //How many loads per player before switching
    var
    loadsnum :integer;

    {-------------------------------------------------------
                           Player Setup
    --------------------------------------------------------}


    procedure DeclarePlayers;
    begin
       HowManyPlayers := 2; //How many Players
       NumberOfPlayers(HowManyPlayers);
       CurrentPlayer :=0; //Starting Player

       Players[0].Name := 'Username';
       Players[0].Pass := 'Password';
       Players[0].Nick := '3-4 letters of Username';
       Players[0].Active := True;

       Players[1].Name := 'Username';
       Players[1].Pass := 'Password';
       Players[1].Nick := '3-4 letters of Username';
       Players[1].Active := True;
       
    end;

    {----------------------------Do Not Edit Below This----------------------------}

    procedure Signature;
      begin
       ClearDebug;
       writeln('      Torrents Willow Crusher&Banker      ');
       writeln(' _____                                _   ');
       writeln('(_   _)                              ( )_ ');
       writeln('  | |   _    _ __  _ __   __    ___  | ,_)');
       writeln('  | | / _`\ ( "__)( "__)/"__`\/" _ `\| |  ');
       writeln('  | |( (_) )| |   | |  (  ___/| ( ) || |_ ');
       writeln('  (_)`\___/ (_)   (_)  `\____)(_) (_) \__)');
       wait(2500 + random(500));
      end;

    Procedure ToFProggy;
    begin
      ClearDebug;
      Writeln(' Please Post Progress Reports &any problems ');
      Writeln('      From Wherever you got the script      ');
      Writeln('//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\');
        Writeln('[ Script Worked for ' + TimeRunning);
      Writeln('//\\ Did :' + IntToStr(LoadsNum)  + 'Loads  ');
      Writeln('//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\');
      Writeln('//\\   Thanks for Using my Script :D   //\\ ');
    end;


    begin
    //etc;
    signature;
    tofproggy;
    end.
    Being A Boss

  4. #4
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    Its always abit udner or above the error line:

    SCAR Code:
    procedure DeclarePlayers;
    begin
       HowManyPlayers := 2; //How many Players
       NumberOfPlayers(HowManyPlayers);
       CurrentPlayer :=0; //Starting Player
       
       Players[0].Name := 'Username';
       Players[0].Pass := 'Password';
       Players[0].Nick := '3-4 letters of Username';
       Players[0].Active := True;
       
       Players[1].Name := 'Username';
       Players[1].Pass := 'Password';
       Players[1].Nick := '3-4 letters of Username';
       Players[1].Active := True;

    end; //U forgot this!
    Ce ne sont que des gueux


  5. #5
    Join Date
    Oct 2006
    Posts
    1,190
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    u will also need to change ScriptTime2 to TimeRunning



  6. #6
    Join Date
    Feb 2007
    Location
    South East England
    Posts
    2,906
    Mentioned
    2 Post(s)
    Quoted
    8 Post(s)

    Default

    Thanks All XD

    And yeh!! I remembered at the end of the declare players there was no end!

    Thanks again all
    Jus' Lurkin'

  7. #7
    Join Date
    Feb 2007
    Location
    South East England
    Posts
    2,906
    Mentioned
    2 Post(s)
    Quoted
    8 Post(s)

    Default

    When I compile no it opens Global.scar and says

    Line 12: [Error] (36:1): Semicolon (';') expected in script

    Help :/

    I add a Semi and it says Identifier expected
    Jus' Lurkin'

  8. #8
    Join Date
    Dec 2006
    Location
    Boss central
    Posts
    811
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Torrent of Flame View Post
    When I compile no it opens Global.scar and says

    Line 12: [Error] (36:1): Semicolon (';') expected in script

    Help :/

    I add a Semi and it says Identifier expected
    delete all your includes and redownload
    Being A Boss

  9. #9
    Join Date
    Feb 2007
    Location
    South East England
    Posts
    2,906
    Mentioned
    2 Post(s)
    Quoted
    8 Post(s)

    Default

    *sigh*

    Too much hassle

    lol
    Jus' Lurkin'

  10. #10
    Join Date
    Feb 2007
    Location
    South East England
    Posts
    2,906
    Mentioned
    2 Post(s)
    Quoted
    8 Post(s)

    Default

    Still doesnt work
    Jus' Lurkin'

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Identifier Expected
    By HairyDuncan2 in forum OSR Help
    Replies: 1
    Last Post: 10-06-2007, 08:58 AM
  2. Identifier expected
    By badandymitch in forum OSR Help
    Replies: 4
    Last Post: 05-31-2007, 11:57 PM
  3. Identifier Expected
    By PwNZoRNooB in forum OSR Help
    Replies: 5
    Last Post: 05-03-2007, 07:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •