Results 1 to 17 of 17

Thread: Reflection walking

  1. #1
    Join Date
    Oct 2008
    Posts
    695
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Reflection walking

    Error with this code at line 100


    Procedure LumbyToFally;
    Var
    I: Integer;
    Path: TPointArray;
    Begin
    Path := PathToFally;
    for i := 0 to High(Path) do
    Begin
    Makecompass('n');
    SetAngle(True);
    WalkToTile(Path[i], 2, 1); <-- error
    (GetMMLevels('run', t) >= 98);
    SetRun(True);
    R_Flag;
    Flag;
    end;
    end;
    Error is ''Identifier expected in script''
    Last edited by NiiX; 07-05-2009 at 12:30 AM.
    Siggy is out, sry fellas :/

  2. #2
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    well, whats the error? maby you set the path function wrong, or a syntax error.
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  3. #3
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Try to use scar tags and standards.
    ~Hermen

  4. #4
    Join Date
    Oct 2008
    Posts
    695
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Hermen View Post
    Try to use scar tags and standards.
    Yet another 100% irrelevant post by Hermpie, do us all a favor and please hang out in the BBQ section, k?
    Siggy is out, sry fellas :/

  5. #5
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by NiiX View Post
    Yet another 100% irrelevant post by Hermpie, do us all a favor and please hang out in the BBQ section, k?
    Change your Attitude, that has everything to do with your post.
    If you can't read it we can't help you if you don't tell us the error we can't help you.

    Don't make jokes about we can't read it since, bad standards, gives me enough reason to not even give it a try. And I am not the only one.
    Normally you would have had your answer by now.
    ~Hermen

  6. #6
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    +1 for herman. standards and scar tags have every thing to do with us helping you.
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  7. #7
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by akwardsaw View Post
    +1 for hermpi. standards and scar tags have every thing to do with us helping you.
    Hermen*
    Nixxu, we just want to help you, and standards can't be bad if you use them right .
    ~Hermen

  8. #8
    Join Date
    Oct 2008
    Posts
    695
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Hermen View Post
    Hermen*
    Nixxu, we just want to help you, and standards can't be bad if you use them right .
    The script Im doing is about 0,50% done, so lets hang on with those until Ive made the foundation work, k?

    I just need to know whats wrong with that code so I can move on..
    Siggy is out, sry fellas :/

  9. #9
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    when you tell us what the error says i'll be happy to help

    Hermen*
    fixx'd :P i always get you guys mixxed up
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  10. #10
    Join Date
    Oct 2008
    Posts
    695
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by akwardsaw View Post
    when you tell us what the error says i'll be happy to help



    fixx'd :P i always get you guys mixxed up
    He used to be Hermpie

    Read top post
    Siggy is out, sry fellas :/

  11. #11
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    Quote Originally Posted by NiiX View Post
    He used to be Hermpie

    Read top post
    same thing

    and 1sec, i'll look through it

    edit: this is the line that has the error: (GetMMLevels('run', t) >= 98);

    i beileve you want to use a conditional statement,

    SCAR Code:
    if GetMMLevels('run', t) >= 98 then
    begin
      SetRun(True);
      R_Flag;
      Flag;
    end;

    i may be wrong, since i never used getmmlevels
    Last edited by Awkwardsaw; 07-05-2009 at 12:47 AM.
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  12. #12
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    The identifier expected is for the next line. You have a conditional statement in a random place.
    :-)

  13. #13
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by akwardsaw View Post
    fixx'd :P i always get you guys mixxed up
    I'm one and the same person .

    Nixxu: I will give it a look.
    edit:
    SCAR Code:
    (GetMMLevels('run', t) >= 98);
    then what?

    there must be a statement like:
    SCAR Code:
    if (GetMMLevels('run', t) >= 98) then SetRun(True);
    ~Hermen

  14. #14
    Join Date
    Oct 2008
    Posts
    695
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Sigh, Ive now made it to be like this

    SCAR Code:
    Procedure LumbyToFally;
    Var
      I: Integer;
      Path: TPointArray;
    Begin
      Path := PathToFally;
      for i := 0 to High(Path) do
    Begin
     Makecompass('n');
      SetAngle(True);
      CheckNrgy;
       WalkToTile(Path[i], 2, 1);
          R_Flag;
          Flag;
      end;
    end;

    Procedure CheckNrgy;
    Begin
    if (GetMMLevels('run', t) >= 99); then
    RestUntil(100);
    end;

    I get this error while trying to run it



    full script : http://pastebin.com/m5f2b9e00

    Edit : Please note that the 99 can be anything, the error still appears
    Siggy is out, sry fellas :/

  15. #15
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    In a "if SOMETHING then" Never put a ; at the Something .
    If you ran scripts a lot that error pops-up every while and then.
    Just save your script and restart scar.
    ~Hermen

  16. #16
    Join Date
    Oct 2008
    Posts
    695
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Hermen View Post
    In a "if SOMETHING then" Never put a ; at the Something .
    If you ran scripts a lot that error pops-up every while and then.
    Just save your script and restart scar.
    err?

    Whats the problem, that I use scripts 2 much? I haven't used a script for 3 months
    Siggy is out, sry fellas :/

  17. #17
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    No, it's just that Scar just gives an error with everything you do, just restart scar and delete the ";" from your if then statement.
    ~Hermen

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
  •