Results 1 to 5 of 5

Thread: Line 31 Error... Help!

  1. #1
    Join Date
    Jan 2008
    Location
    C:\
    Posts
    1,483
    Mentioned
    2 Post(s)
    Quoted
    2 Post(s)

    Default Line 31 Error... Help!

    When I try and run this script, all I get is an error at the bottom stating:

    Code:
    Failed when compiling
    Line 31: [Error] (93:1): Duplicate identifier '' in script C:\Program Files\SCAR 3.11\includes\SRL/SRL/Core/Globals.scar
    it says there is something wrong with Globals.scar:

    SCAR Code:
    const
      SRLVersionNumber = '4.00';

      { const MMX1, MMY1, MMX2, MMY2;
      Description: MiniMap Edge Points. }

    const                                // <-- what is wrong with it?
      MMX1 = 570;
      MMY1 = 5;
      MMX2 = 715;
      MMY2 = 160;

    { const MMCX, MMCY;
      Description: MiniMap Centre Point. }

    const
      MMCX = 643;
      MMCY = 84;

    { const MSX1, MSY1, MSX2, MSY2;
      Description: Main Screen EdgePoints. }

    const
      MSX1 = 1;
      MSY1 = 1;
      MSX2 = 516;
      MSY2 = 338;

    { const MSCX, MSCY;
      Description: Main Screen Centre Points. }

    const
      MSCX = 259;
      MSCY = 170;

    { const MIX1, MIY1, MIX2, MIY2;
      Description: Inventory EdgePoints. }

    const
      MIX1 = 547;
      MIY1 = 202;
      MIX2 = 737;
      MIY2 = 466;

    { const MICX, MICY;
      Description: Inventory Centre Points. }

    const
      MICX = 642;
      MICY = 334;

    { const MCX1, MCY1, MCX2, MCY2;
      Description: Chat Screen EdgePoints. }

    const
      MCX1 = 4;
      MCY1 = 342;
      MCX2 = 496;
      MCY2 = 460;

    { const MCCX, MCCY;
      Description: Chat Screen Centre Points. }

    const
      MCCX = 250;
      MCCY = 401;

    Can anyone help me out?

  2. #2
    Join Date
    Jul 2007
    Posts
    1,055
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    er....aaa...this isn't even a script. On top of that, I get "[Error] (60:1): Unexpected end of file". Sorry.

  3. #3
    Join Date
    Jan 2008
    Location
    C:\
    Posts
    1,483
    Mentioned
    2 Post(s)
    Quoted
    2 Post(s)

    Default

    I know, it is part of the Globals.scar script in the SRL folder.

    When I run another script, the Globals script pops up in a serparate tab and says there is a duplicate error on line 31. Got any idea what it's trying to tell me?

  4. #4
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    means u have an error in ur script, so you need to post that one
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  5. #5
    Join Date
    Jan 2008
    Location
    C:\
    Posts
    1,483
    Mentioned
    2 Post(s)
    Quoted
    2 Post(s)

    Default

    oh nevermind, I got it to work.
    I had to update my globals.scar file because there was a part missing from it needed to run my script.

    thanks for offering help though

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Line 135: [Error] (14845:1): Syntax error in script
    By AbsTrACt'^.| in forum OSR Help
    Replies: 16
    Last Post: 05-23-2008, 01:14 PM
  2. Replies: 5
    Last Post: 02-26-2008, 04:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •