Results 1 to 18 of 18

Thread: Semicolon help

  1. #1
    Join Date
    Aug 2007
    Location
    Vancouver
    Posts
    394
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Semicolon help

    This is killing me T.T

    SCAR Code:
    Procedure CheckAxe;
    begin
    MMouse(583, 219, 1, 2);
    If(IsUpTextMulti('Adamant', 'Mithril', 'Rune')) then
    Writeln('Good, axe is not broken');
    End Else
    begin
    Writeln('Oh no, the axe is broken :(');
    Writeln('going to get a new one from the bank');
    NewAxe;
    End;
    end;

    Line 62: [Error] (15151:5): Semicolon (';') expected in script C:\Program Files\SCAR 3.12\Scripts\cutter.scar

  2. #2
    Join Date
    Mar 2007
    Location
    Netherlands->Amersfoort.
    Posts
    1,615
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    Procedure CheckAxe;
    begin
      MMouse(583, 219, 1, 2);
      If IsUpTextMulti('Adamant', 'Mithril', 'Rune') then
        Writeln('Good, axe is not broken')
      Else
      begin
        Writeln('Oh no, the axe is broken :(');
        Writeln('going to get a new one from the bank');
        NewAxe;
      End;
    end;

    try this
    you had a end to much.

  3. #3
    Join Date
    Aug 2007
    Location
    Vancouver
    Posts
    394
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    still getting the error =S

  4. #4
    Join Date
    Mar 2007
    Posts
    57
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    Procedure CheckAxe;
    begin
      MMouse(583, 219, 1, 2);
      If IsUpTextMulti('Adamant', 'Mithril', 'Rune') then
        Writeln('Good, axe is not broken');
      Else
      begin
        Writeln('Oh no, the axe is broken :(');
        Writeln('going to get a new one from the bank');
        NewAxe;
      end
    end;

    try that

  5. #5
    Join Date
    Aug 2007
    Location
    Vancouver
    Posts
    394
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    it worked chris thanks...what did you do exactly xD

  6. #6
    Join Date
    Aug 2007
    Location
    Vancouver
    Posts
    394
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    bah another one !?!?

    SCAR Code:
    Procedure NewAxe;
    begin
    RadialWalk(70455772,272,280,64,4,5);
    ToBankers;
    OpenEdgeBank;
    MMouse(101, 69, 1, 2);
    If(IsUpTextMulti('Adamant', 'Axe', ''))  then
    Writeln('Good you have another axe now withdrawing and heading back')
    Withdraw(1,1,1);
    Else
    CloseBank;
    Logout;
    Writeln('No axe was found');
    End;
    end;

    i know my standards are bad..

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

    Default

    it is the last end of the procedure that needs the ; you had another end with an ;

    again it is the same problem

  8. #8
    Join Date
    Aug 2007
    Location
    Vancouver
    Posts
    394
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    wow thanks, is that new or something? ive never had to do that before.

    EDIT: I did it to the other one but still get the same error

  9. #9
    Join Date
    Mar 2007
    Location
    Netherlands->Amersfoort.
    Posts
    1,615
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    no it isn't and normal a end needs to have a ; ..

  10. #10
    Join Date
    Mar 2007
    Posts
    57
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    Procedure NewAxe;
    begin
    RadialWalk(70455772,272,280,64,4,5);
    ToBankers;
    OpenEdgeBank;
    MMouse(101, 69, 1, 2);
    If(IsUpTextMulti('Adamant', 'Axe', ''))  then
    Writeln('Good you have another axe now withdrawing and heading back');
    Withdraw(1,1,1);
    Else
    CloseBank;
    Logout;
    Writeln('No axe was found');
    End
    end;

    Try that

    I think you needed one on your writeln too

  11. #11
    Join Date
    Aug 2007
    Location
    Vancouver
    Posts
    394
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Look at the original post i have a ;. chris took it out and it worked =S

    Edit: doesnt work chris =S

  12. #12
    Join Date
    Mar 2007
    Posts
    57
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    Procedure NewAxe;
    begin
    RadialWalk(70455772,272,280,64,4,5);
    ToBankers;
    OpenEdgeBank;
    MMouse(101, 69, 1, 2);
    If(IsUpTextMulti('Adamant', 'Axe', ''))  then
    Writeln('Good you have another axe now withdrawing and heading back');
    Withdraw(1,1,1);
    Else
    CloseBank;
    Logout;
    Writeln('No axe was found');
    End;
    end;

    Uggh nevermind, you do need a ";" after the end. you forgot a ; after writeln.

    I am used to java, it is very different.

  13. #13
    Join Date
    Aug 2007
    Location
    Vancouver
    Posts
    394
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    bah didnt work =(, i honestly belive its scar now. I looked at my fletcher and it had ends and such like that...

  14. #14
    Join Date
    Oct 2007
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hey dude i get exactly same errors with semicolons its probally scar 3.13 . I dont know...
    Woot woot.

  15. #15
    Join Date
    Aug 2007
    Location
    Vancouver
    Posts
    394
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I'm using scar 3.12C it works better.

    Edit: I g2g thanks chris for the help.

    anyone that can help with my new errors please do!!

  16. #16
    Join Date
    Mar 2008
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    166 if (FormOption[16]) then
    167 WriteFileString(charsfile, 'extended3' +
    168 IntToStr(f) + '=' +
    169 FloatToStr(players[currentplayer].extended3) + Chr(13))
    170 WriteFileString(charsfile, Chr(13));

    Line 170: [Error] (658:1): Semicolon (';') expected


    ^^i got this ^^

  17. #17
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Please do not gravedig.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

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

    Default

    Quote Originally Posted by luchky16 View Post
    166 if (FormOption[16]) then
    167 WriteFileString(charsfile, 'extended3' +
    168 IntToStr(f) + '=' +
    169 FloatToStr(players[currentplayer].extended3) + Chr(13))
    170 WriteFileString(charsfile, Chr(13));

    Line 170: [Error] (658:1): Semicolon (';') expected


    ^^i got this ^^
    Okay 1.)scar tags 2.)Grave dig 3.)Thread hijack

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Semicolon
    By 2pacfan in forum OSR Help
    Replies: 4
    Last Post: 03-20-2008, 09:01 PM
  2. Semicolon (';') help
    By TommyGun in forum OSR Help
    Replies: 5
    Last Post: 02-28-2008, 02:55 PM
  3. But there IS a semicolon... wtf
    By Nu2Scar in forum OSR Help
    Replies: 5
    Last Post: 04-16-2007, 12:34 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
  •