Results 1 to 7 of 7

Thread: the dreadful [Error] (xxxx:x): Identifier expected

  1. #1
    Join Date
    May 2008
    Location
    Canada
    Posts
    665
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default the dreadful [Error] (xxxx:x): Identifier expected

    I hate this error with a passion. it makes me have to go over the entire code, only to fill up a simple forgotten "end;" statement somewhere. A 5 min problem here, a 5 second problem in other languages from their tendency to specify where the error is. So, is there anyway for scar to pinpoint where the error is? for effeciency purposes?

  2. #2
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    It usually says what line it's on right next to where it say's the error..

  3. #3
    Join Date
    May 2008
    Location
    Canada
    Posts
    665
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    I mean, for most errors, it is something like this:
    Line 236: [Error] (20995:1): Identifier expected in script C:\....
    Failed when compiling

    but for my error when i forgot an "end;" statement, all it says is this:
    [Error] (20993:4): Identifier expected

    Nothing else, just this. No "failed when compiling". It just says that one single line. If this is a problem unique to me then...
    Last edited by mrpickle; 11-11-2009 at 04:35 AM.

  4. #4
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Most errors it does specify a line. Identifier expected errors are always (i think) caused by a mismatched begin..end nest.

  5. #5
    Join Date
    May 2008
    Location
    Canada
    Posts
    665
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    Quote Originally Posted by NCDS View Post
    Most errors it does specify a line. Identifier expected errors are always (i think) caused by a mismatched begin..end nest.
    Yeah, exactly =\... I kinda wanted scar to specify the line where it detects such problems. even just specifying a "unfinished begin at line x" would help a bunch ^^.

  6. #6
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    I've personally never had this happen to me, but I can give you a tip to avoid getting that error in the first place. If you develop perfect standards, there is a very good chance you wont ever forget an end. If you have each nest line up in the correct columns, it is very easy to see if you've missed an end.

  7. #7
    Join Date
    May 2008
    Location
    Canada
    Posts
    665
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    erm, i guess my scripts aren;t the best xD... i miss the "end;" alot. On my way to better standards then =D

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
  •