Results 1 to 11 of 11

Thread: Line 7: [Error] (7:1): Identifier expected in script

  1. #1
    Join Date
    May 2008
    Posts
    93
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Line 7: [Error] (7:1): Identifier expected in script

    Hi, I got this error when I was trying out DTMS for my first script, this is not for runescape, just trying to find an icon on my desktop.

    SCAR Code:
    program New;
    {include srl/srl.scar}
    var x,y,DTM : integer;

    begin

    procedure hi;
    begin
    DTM := DTMFromString('78DA63CC63606078C0C8800C62B6FE07D3305' +
           '146909A0BA86ABA0F3F4055530F24EEA3AA092ADB81AAA60048BC' +
           '4755A31DB112554D02907884AAA665EB1D5435C940E21AAA9A29F' +
           'B6FA0A8010059261301');
           FindDTM(DTM,x,y,0,0,174,743)
           MMouse(x,y,2,2)
    end;

    begin
    setupsrl;
    hi;
    end.

    EDIT: also, how would i press an fkey with scar?

  2. #2
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

  3. #3
    Join Date
    Jul 2007
    Location
    Norway.
    Posts
    1,938
    Mentioned
    3 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    program oHAI;
    {include srl/srl.scar}

    var
      x,y,DTM : integer;

    procedure hai;
    begin
      DTM := DTMFromString('78DA63CC63606078C0C8800C62B6FE07D3305' +
             '146909A0BA86ABA0F3F4055530F24EEA3AA092ADB81AAA60048BC' +
             '4755A31DB112554D02907884AAA665EB1D5435C940E21AAA9A29F' +
             'B6FA0A8010059261301');
      if FindDTM(DTM, x, y, 0, 0, 174, 743) then MMouse(x,y,2,2);
      FreeDTM(HAI);
    end;

    begin
      SetupSRL;
      hai;
    end.

    hai ^^

  4. #4
    Join Date
    Nov 2007
    Location
    The Netherlands
    Posts
    1,490
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    this is an easy fix:
    SCAR Code:
    program New;
    {include srl/srl.scar}
    var x,y,DTM : integer;
     
    procedure hi;
    begin
      DTM := DTMFromString('78DA63CC63606078C0C8800C62B6FE07D3305' +
           '146909A0BA86ABA0F3F4055530F24EEA3AA092ADB81AAA60048BC' +
           '4755A31DB112554D02907884AAA665EB1D5435C940E21AAA9A29F' +
           'B6FA0A8010059261301');
           FindDTM(DTM,x,y,0,0,174,743)
           MMouse(x,y,2,2)
    end;
     
    begin
      setupsrl;
      hi;
    end.

    EDIT: ohh lol.. everyone posted that at around the same second xD

  5. #5
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    Quote Originally Posted by pvh View Post
    this is an easy fix:
    yes but just remember he did say that this is his first script
    Quote Originally Posted by pvh View Post
    EDIT: ohh lol.. everyone posted that at around the same second xD
    yeah but my scar code was smaller than yours
    if you tell them what is wrong and not just show them the fixed one then they will know where they have gone wrong and what to do next time

    ~shut

  6. #6
    Join Date
    Nov 2007
    Location
    The Netherlands
    Posts
    1,490
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ohh yea i forgot that
    Kinda dumb

  7. #7
    Join Date
    May 2008
    Posts
    93
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thank you guys so much!
    EDIT: it doesn't recognize SetupSRL or MMouse, but i have srl, and revision, what could be wrong here?

  8. #8
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    SCAR Code:
    {include srl/srl.scar}

    Needs to be:

    SCAR Code:
    {.include srl/srl.scar}

    Easy fix all includes need the ..

    Nava2
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  9. #9
    Join Date
    May 2008
    Posts
    93
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok, thanks!!!! It might be done in a couple days!

  10. #10
    Join Date
    Mar 2007
    Posts
    3,116
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Using pvh's code: your not including curretly:
    SCAR Code:
    program New;
    {.include srl/srl.scar}//needed the .include
    var x,y,DTM : integer;
     
    begin
     
    procedure hi;
    begin
    DTM := DTMFromString('78DA63CC63606078C0C8800C62B6FE07D3305' +
           '146909A0BA86ABA0F3F4055530F24EEA3AA092ADB81AAA60048BC' +
           '4755A31DB112554D02907884AAA665EB1D5435C940E21AAA9A29F' +
           'B6FA0A8010059261301');
           FindDTM(DTM,x,y,0,0,174,743)
           MMouse(x,y,2,2)
    end;
     
    begin
    setupsrl;
    hi;
    end.

    Edit:beat by Nava2

  11. #11
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by Mylesmadness View Post
    Edit:beat by Nava2
    KThnxBai.

    Mine was less typing

    Nava2
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 11-02-2008, 12:39 PM
  2. Replies: 2
    Last Post: 08-25-2008, 01:32 AM
  3. Replies: 8
    Last Post: 02-03-2008, 01:58 AM
  4. Replies: 17
    Last Post: 11-14-2007, 07:43 AM

Posting Permissions

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