Results 1 to 8 of 8

Thread: Script won't compile

  1. #1
    Join Date
    Nov 2007
    Posts
    76
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Script won't compile

    I fixed most of the errors in the script, there also may be some other errors but I would appreciate if someone could help me fix this error which I can't understand what is causing it.

    Line 13: [Error] (18456:7): Identifier expected in script
    Line 13: [Error] (18456:7): Duplicate identifier '' in script

  2. #2
    Join Date
    May 2007
    Location
    UK
    Posts
    4,007
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    duplicate identifier means that there is a function in your script that has the same name as another function, just put '2' on the end.
    identifier expected is like you have an extra end or something.
    hope this helps.

    T~M

  3. #3
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    Remove the comma after the y
    Should be
    SCAR Code:
    x, y : Integer;

    not
    SCAR Code:
    x,y,: Integer;

  4. #4
    Join Date
    Nov 2007
    Posts
    76
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    [Error] (18637:1): Identifier expected

    Gah, seems like loads of errors in my script =/
    I can't see where the error is here either

  5. #5
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    you have no "until" for your repeat loop in the mainloop

  6. #6
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    If you copy and paste the code in scar tags I can help you. For some reason when I download and open it it opens up the default script in SCAR, so I can't see your script.

  7. #7
    Join Date
    Nov 2007
    Posts
    76
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Huzzah, it compiled. Thanks a ton.

    JAD I'm not sure if it is me or you but the problem is fixed anyways. Thanks.

  8. #8
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    Quote Originally Posted by Rct33 View Post
    Huzzah, it compiled. Thanks a ton.

    JAD I'm not sure if it is me or you but the problem is fixed anyways. Thanks.
    Welcome, if you need anymore help just join the IRC channel. Most of the time, there are people there willing to help you(and its instant help ^_^ ).

    http://www.hy71194.mgatesphoto.com/srlchat/

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
  •