Results 1 to 8 of 8

Thread: End. ????

  1. #1
    Join Date
    Dec 2006
    Posts
    56
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default End. ????

    I have a very..... Unusual problem as far as I can see. End. is the comand to end the main loop as I have always thought. But recently it seems to want to give me this "Identifier expected in script" Where End. is. How can I fix this please?

  2. #2
    Join Date
    Jul 2006
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    make sure you closed off all your begins and repeats
    "your always where you supposed to be"

  3. #3
    Join Date
    Dec 2006
    Posts
    56
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Wrong... I am wrong..... It hasn't been solved that was a nothing which I thought I had fixed.
    someone please take a look at this.


    Begin
    SetupSRL;
    MouseSpeed := MMouseSpeed;
    BenMouse := UseBenMouse
    ActivateClient;
    ChatsOff;
    loadsa:= 0;
    repeat
    loadsa:= loadsa + 1;
    choppingtrees;
    drop;
    until (loadsa = loads)
    End.

    Line 104: [Error] (15441:4): Identifier expected in script

    And please remember I am a NOOB scripter started this script 3 days ago. No laughing unless I really am stupid.

  4. #4
    Join Date
    Jul 2007
    Location
    's-Gravenpolder, Holland
    Posts
    204
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    until (loadsa = loads) <-----
    End.

    Your forgot a ;
    It always says 1 line further then where the actual error is, mostly all of the time

  5. #5
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    You also forgot a semicolon at the end of BenMouse := UseBenMouse.

  6. #6
    Join Date
    Dec 2006
    Posts
    56
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks guys still not fixed though

    Begin
    SetupSRL;
    MouseSpeed := MMouseSpeed;
    BenMouse := UseBenMouse;
    ActivateClient;
    ChatsOff;
    loadsa:= 0;
    repeat
    loadsa:= loadsa + 1;
    choppingtrees;
    drop;
    until (loadsa >= loads);
    End.

    Line 104: [Error] (15441:4): Identifier expected in script

  7. #7
    Join Date
    Jul 2007
    Location
    's-Gravenpolder, Holland
    Posts
    204
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Can you post the whole script please? Because it says on line 104 but those aint a 104 lines

    Just use Manage Attachments when u make a new reply (scroll a bit down) and uplaod it so we can see whats wrong

  8. #8
    Join Date
    Dec 2006
    Posts
    56
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SOLVED at last........ The issue I found was that in my chopping procedure... The only procedure I thought NEVER to be wrong I had made an "improvement" on last night. Needless to say it is now nearly finished and I thank everyone for their kind ideas and thoughts on the issue. Reason why I didn't post it was because normally as SirPali said "It always says 1 line further then where the actual error is, mostly all of the time."

    Can be CLOSED

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
  •