Results 1 to 21 of 21

Thread: period ('.') expected

  1. #1
    Join Date
    Mar 2007
    Posts
    195
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default period ('.') expected

    Wtf does they mean by '.' expected,i'm trying to close a begin,not the entire script...

    SCAR Code:
    Line 36: [Error] (18663:4): period ('.') expected in script C:\Program Files\SCAR 2.03\Scripts\NEW.scar

    Here is the script:

    SCAR Code:
    program Test;
    {.include SRL/SRL.scar}
    {.include SRL/SRL/Skill/Mining.scar}

    const
      ClayColor = 7515081;
     
    var Jug, Water:integer;


    procedure MineClay;
    begin
      if (FindColorSpiralTolerance(x, y, clayColor, 5, 5, 514, 337, 2)) then
      begin
        MMouse(x, y, 0, 0);
        Wait(100);
        MakeCompass('N');
        GetMousePos(x,y);
        Mouse(x, y, 0, 0, true);
        Wait(3000 + Random(1000));
      end;
    end;

    begin
      repeat
        MineClay;
      until(InvFull);
      Jug :=  DTMFromString('78DA6314656060006124D05A53CDF01F48330' +
           '2F17F2060E40532D819D000231209A42580841CAA0A0305055435' +
           'FC4042968039DC40421C55C592993350D5808CE523608E3C90902' +
           '2A0461A48B01150D300247219B002981A001EE80B0B');
      Water := DTMFromString('78DA63E4666060E065400126318F18FE03694' +
           '620FE0F048C82400607AA1A464646080DE383CC6125A086950873' +
           'D8808420117609135003324300BF1A00FABB0732');
      MakeCompass('S');
      end;

    procedure Water;
      if FindDTM(Water,x, y,1, 1, 200, 200) then
      Wait(100);
      MMouse(x, y, 0, 0);
      GetMousePos(x,y);
      Mouse(x, y, 0, 0, true);
    end.

    If at least i could understand that i could continue the script,everything seems to work fine for me but for the END;
    Dormcheck is a scam,i've posted 1000 messages and i never got paid my 10 bucks.
    http://www.fenjer.com/adnan/SRLStats/348.png

  2. #2
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    You're trying to shut off a procedure with with the end you use to shut off the script. Replace "End." with "End;"

    Edit: And I used to play that game, PTW. Well, I autoed it can't wait till the new owners take over. Or have they already taken over?

  3. #3
    Join Date
    Mar 2007
    Posts
    195
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    No,that's there because the script isn't finished,i'm talking about the end; before the end.

    It's the one that receive the error
    Dormcheck is a scam,i've posted 1000 messages and i never got paid my 10 bucks.
    http://www.fenjer.com/adnan/SRLStats/348.png

  4. #4
    Join Date
    Jun 2006
    Location
    Tennessee, USA
    Posts
    2,603
    Mentioned
    1 Post(s)
    Quoted
    46 Post(s)

    Default

    SCAR Code:
    begin
      repeat
        MineClay;
      until(InvFull);
      Jug :=  DTMFromString('78DA6314656060006124D05A53CDF01F48330' +
           '2F17F2060E40532D819D000231209A42580841CAA0A0305055435' +
           'FC4042968039DC40421C55C592993350D5808CE523608E3C90902' +
           '2A0461A48B01150D300247219B002981A001EE80B0B');
      Water := DTMFromString('78DA63E4666060E065400126318F18FE03694' +
           '620FE0F048C82400607AA1A464646080DE383CC6125A086950873' +
           'D8808420117609135003324300BF1A00FABB0732');
      MakeCompass('S');
      end;

    you forgot to name this procedure, the script thinks that it is your main loop. And if it is your main loop, then it has to end with end. not end; and also make it the very last thing instead of your Water procedure

  5. #5
    Join Date
    Mar 2007
    Posts
    195
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Then how do i get multiple procedures?I want the water procedure to repeat too when it is finished,i don't wanna repeat the entire script
    Dormcheck is a scam,i've posted 1000 messages and i never got paid my 10 bucks.
    http://www.fenjer.com/adnan/SRLStats/348.png

  6. #6
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    SCAR Code:
    procedure proc1;
     begin
     Stuff;
     end;

    procedure proc2;
     begin
     Stuff;
     end;

    begin
    proc1;
     repeat
      proc2;
     until(false);
    end.

  7. #7
    Join Date
    Mar 2007
    Posts
    195
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    WTF,i don't understand anything now,you want to get me desesperate well you nearly suceeded

    I want to know how TO CONTINUE THE CURRENT SCRIPT
    Dormcheck is a scam,i've posted 1000 messages and i never got paid my 10 bucks.
    http://www.fenjer.com/adnan/SRLStats/348.png

  8. #8
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    If you don't understand that much, go read a tutorial, mate

  9. #9
    Join Date
    Mar 2007
    Posts
    195
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Just wait a second,I GET IT

    But now my script dosen't work anymore,i start it(i aimed rs client) and it does NOTHING

    SCAR Code:
    program Test;
    {.include SRL/SRL.scar}
    {.include SRL/SRL/Skill/Mining.scar}

    const
      ClayColor = 7383496;
     
    var Jug, Water:integer;


    procedure MineClay;
    begin
      if (FindColorSpiralTolerance(x, y, clayColor, 5, 5, 514, 337, 2)) then
      begin
        MMouse(x, y, 0, 0);
        Wait(100);
        MakeCompass('N');
        GetMousePos(x,y);
        Mouse(x, y, 0, 0, true);
        Wait(3000 + Random(1000));
      end;
    end;

    procedure rep;
    begin
      repeat
        MineClay;
      until(InvFull);
      end;

    procedure Wclay;
      Begin
      Jug :=  DTMFromString('78DA6314656060006124D05A53CDF01F48330' +
           '2F17F2060E40532D819D000231209A42580841CAA0A0305055435' +
           'FC4042968039DC40421C55C592993350D5808CE523608E3C90902' +
           '2A0461A48B01150D300247219B002981A001EE80B0B');
      Water := DTMFromString('78DA63E4666060E065400126318F18FE03694' +
           '620FE0F048C82400607AA1A464646080DE383CC6125A086950873' +
           'D8808420117609135003324300BF1A00FABB0732');
      MakeCompass('S');
      if FindDTM(Water,x, y,1, 1, 200, 200) then
      Wait(100);
      MMouse(x, y, 0, 0);
      GetMousePos(x,y);
      Mouse(x, y, 0, 0, true);
    end;

    begin
    end.
    Dormcheck is a scam,i've posted 1000 messages and i never got paid my 10 bucks.
    http://www.fenjer.com/adnan/SRLStats/348.png

  10. #10
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    The last "Begin" and "End." are your main loop. You have to put in your procedures there.

  11. #11
    Join Date
    Mar 2007
    Posts
    195
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks Jason,you're a great help,+rep for you

    But that piece of crap of SCAR gives me again a error message:

    SCAR Code:
    Line 6: [Error] (18633:1): Identifier expected in script C:\Program Files\SCAR 2.03\Scripts\NEW.scar

    First 10 lines:

    SCAR Code:
    program Test;
    {.include SRL/SRL.scar}
    {.include SRL/SRL/Skill/Mining.scar}
    Begin
     
    procedure MineClay;
    const
      ClayColor = 7383496;
    begin
      if (FindColorSpiralTolerance(x, y, clayColor, 5, 5, 514, 337, 2)) then
    Dormcheck is a scam,i've posted 1000 messages and i never got paid my 10 bucks.
    http://www.fenjer.com/adnan/SRLStats/348.png

  12. #12
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    That usually either means:

    1: You started an If...Then and didn't tell scar to do anything after that.

    2: You missed an "End". Mostly "End;".

  13. #13
    Join Date
    Feb 2006
    Location
    L.A, USA
    Posts
    1,632
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Kingofptw View Post
    Thanks Jason,you're a great help,+rep for you

    But that piece of crap of SCAR gives me again a error message:

    SCAR Code:
    Line 6: [Error] (18633:1): Identifier expected in script C:\Program Files\SCAR 2.03\Scripts\NEW.scar

    First 10 lines:

    SCAR Code:
    program Test;
    {.include SRL/SRL.scar}
    {.include SRL/SRL/Skill/Mining.scar}
    Begin
     
    procedure MineClay;
    const
      ClayColor = 7383496;
    begin
      if (FindColorSpiralTolerance(x, y, clayColor, 5, 5, 514, 337, 2)) then
    Wow, man you got it really mixed up.
    1. Erase the first begin
    2. Put const below the {.include..} by itself

  14. #14
    Join Date
    Mar 2007
    Posts
    195
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Heres the thing:

    SCAR Code:
    program Test;
    {.include SRL/SRL.scar}
    {.include SRL/SRL/Skill/Mining.scar}
    Begin

     
    procedure MineClay;
    begin
    const
      ClayColor = 7383496;
      if (FindColorSpiralTolerance(x, y, clayColor, 5, 5, 514, 337, 2)) then
      begin
        MMouse(x, y, 0, 0);
        Wait(100);
        MakeCompass('N');
        GetMousePos(x,y);
        Mouse(x, y, 0, 0, true);
        Wait(3000 + Random(1000));
      end;
    end;

    procedure rep;
    begin
      repeat
        MineClay;
      until(InvFull);
      end;

    var Jug, Water:integer;

    procedure Wclay;
      Begin
      Jug :=  DTMFromString('78DA6314656060006124D05A53CDF01F48330' +
           '2F17F2060E40532D819D000231209A42580841CAA0A0305055435' +
           'FC4042968039DC40421C55C592993350D5808CE523608E3C90902' +
           '2A0461A48B01150D300247219B002981A001EE80B0B');
      Water := DTMFromString('78DA63E4666060E065400126318F18FE03694' +
           '620FE0F048C82400607AA1A464646080DE383CC6125A086950873' +
           'D8808420117609135003324300BF1A00FABB0732');
      MakeCompass('S');
      if FindDTM(Water,x, y,1, 1, 200, 200) then
      Wait(100);
      MMouse(x, y, 0, 0);
      GetMousePos(x,y);
      Mouse(x, y, 0, 0, true);
    end;
    end.

    Heres the error:
    SCAR Code:
    Line 7: [Error] (18634:1): Identifier expected in script C:\Program Files\SCAR 2.03\Scripts\NEW.scar

    Please tell me how to definitely shut off that error because i'm getting bored to be stuck there.
    Dormcheck is a scam,i've posted 1000 messages and i never got paid my 10 bucks.
    http://www.fenjer.com/adnan/SRLStats/348.png

  15. #15
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Shadow just told you. Erase the first begin. Put the const section below the includes, above the procedure tag.

  16. #16
    Join Date
    Mar 2007
    Posts
    195
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I removed the first begin

    Now it gives me this error:

    SCAR Code:
    Line 46: [Error] (18673:1): 'BEGIN' expected in script C:\Program Files\SCAR 2.03\Scripts\NEW.scar

    If i put a begin before the end. the script will not work
    Dormcheck is a scam,i've posted 1000 messages and i never got paid my 10 bucks.
    http://www.fenjer.com/adnan/SRLStats/348.png

  17. #17
    Join Date
    Jun 2006
    Location
    Tennessee, USA
    Posts
    2,603
    Mentioned
    1 Post(s)
    Quoted
    46 Post(s)

    Default

    here make it something along these lines
    SCAR Code:
    program Test;
    {.include SRL/SRL.scar}
    {.include SRL/SRL/Skill/Mining.scar}

    const
      ClayColor = 7383496;

    var
      Jug, Water: integer;


    procedure MineClay;
    begin
      if (FindColorSpiralTolerance(x, y, clayColor, 5, 5, 514, 337, 2)) then
      begin
        MMouse(x, y, 0, 0);
        Wait(100);
        MakeCompass('N');
        GetMousePos(x, y);
        Mouse(x, y, 0, 0, true);
        Wait(3000 + Random(1000));
      end;
    end;

    procedure Rep;
    begin
      repeat
        MineClay;
      until (InvFull);
    end;

    procedure LoadDTMs;
    begin
      Jug := DTMFromString('78DA6314656060006124D05A53CDF01F48330' +
        '2F17F2060E40532D819D000231209A42580841CAA0A0305055435' +
        'FC4042968039DC40421C55C592993350D5808CE523608E3C90902' +
        '2A0461A48B01150D300247219B002981A001EE80B0B');
      Water := DTMFromString('78DA63E4666060E065400126318F18FE03694' +
        '620FE0F048C82400607AA1A464646080DE383CC6125A086950873' +
        'D8808420117609135003324300BF1A00FABB0732');
    end;

    procedure Wclay;
    begin
      MakeCompass('S');
      if FindDTM(Water, x, y, 1, 1, 200, 200) then
        Wait(100);
      MMouse(x, y, 0, 0);
      GetMousePos(x, y);
      Mouse(x, y, 0, 0, true);
    end;

    begin //this is the main loop
      SetupSRL;
      SetupSRLMining;
      LoadDTMs;
      ActivateClient;
      repeat
        MineClay;
        Rep;
        Wclay;
      until (false)
    end.

  18. #18
    Join Date
    Mar 2007
    Posts
    195
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Rep;
    Wclay;
    until(false)
    What this is supposed to mean?

    Sorry but i am really a newbie at scar :P

    And at Wclay procedure i want my mouse to go on the minimap and click on the water symbol,not to remain jacked on the screen
    Dormcheck is a scam,i've posted 1000 messages and i never got paid my 10 bucks.
    http://www.fenjer.com/adnan/SRLStats/348.png

  19. #19
    Join Date
    Jun 2006
    Location
    Tennessee, USA
    Posts
    2,603
    Mentioned
    1 Post(s)
    Quoted
    46 Post(s)

    Default

    thats your main loop. Im sorry, but if you dont know what that is then you need to read some more tuts

  20. #20
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default

    Quote Originally Posted by Kingofptw View Post
    What this is supposed to mean?

    Sorry but i am really a newbie at scar :P

    And at Wclay procedure i want my mouse to go on the minimap and click on the water symbol,not to remain jacked on the screen
    It means its going to use the mine clay thing once for mineclay procedure, then use the rep procedure to repeat until its got a full invy, then its going to use the wetclay procedure, and start over

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

  21. #21
    Join Date
    Mar 2007
    Posts
    195
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yea,i'm trying to make a powercrafter for the crafting guild,but i don't know how i am gonna do lol
    Dormcheck is a scam,i've posted 1000 messages and i never got paid my 10 bucks.
    http://www.fenjer.com/adnan/SRLStats/348.png

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 05-17-2008, 12:48 PM
  2. I just need help. Period.
    By BladeTrix in forum OSR Help
    Replies: 5
    Last Post: 12-01-2007, 03:39 AM
  3. var expected :s
    By ShowerThoughts in forum OSR Help
    Replies: 12
    Last Post: 09-25-2007, 07:33 PM
  4. colon expected ??
    By Ipewnjoo in forum OSR Help
    Replies: 5
    Last Post: 07-01-2007, 09:59 PM
  5. Period expected
    By firedemon in forum OSR Help
    Replies: 6
    Last Post: 02-26-2007, 12:44 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
  •