1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. GTA Network forum is now in archive mode.

Closed startIndex cannot be larger than length of string.

Discussion in 'Solved & Closed' started by JohnLew, Jun 3, 2017.

  1. JohnLew

    JohnLew Member

    Messages:
    20
    Likes Received:
    4
    Joined:
    Apr 26, 2017
    Title:
    startIndex cannot be larger than length of string.
    What's wrong?:
    Error while compiling assembly!
    What should normally happen?:
    Open the server
    How to reproduce the issue:
    Open the server with mono
    Server version:
    Latest
    Operating System:
    -
    Mono version ($ mono -V):
    -
    Write any additional information (Use spoilers for images):
    [12:42:00] Error while compiling assembly!
    [12:42:00] startIndex cannot be larger than length of string.
    Parameter name: startIndex
    [12:42:00] at System.String.Substring (System.Int32 startIndex, System.Int32 length) [0x00037] in <f712f98eb8e445c8918edaf595bbe465>:0
    at System.String.Substring (System.Int32 startIndex) [0x00008] in <f712f98eb8e445c8918edaf595bbe465>:0
    at GTANetworkServer.GameServer.‪‭‬‏‭‏‭‫‫‬‮‌‫‬‏‌‫‌‮‎‮‭‍‪‌‮‮ (System.String , System.Int32 ) [0x00000] in
    at GTANetworkServer.GameServer.CompileScript (System.String[] script, System.String[] references, System.Boolean vbBasic) [0x00528] in <a8fe20d0070a4c9280bd6b8a9e0f0742>:0
    [12:42:00] mscorlib​
     
    Last edited: Jun 3, 2017
  2. Mendes

    Mendes Member

    Messages:
    11
    Likes Received:
    1
    Joined:
    May 24, 2017
    Check if you haven't forget a ";" when you call "using xxx;"
     
    JohnLew likes this.
  3. JohnLew

    JohnLew Member

    Messages:
    20
    Likes Received:
    4
    Joined:
    Apr 26, 2017
    No, the problem is only with the new server update. Thanks.
     
  4. croky

    croky Active Member

    Messages:
    68
    Likes Received:
    3
    Joined:
    Jan 4, 2017
    Check if you have any errors when you save CTRL + S, it should write at the bottom of the document.

    or

    Click View and Error List
     
  5. JohnLew

    JohnLew Member

    Messages:
    20
    Likes Received:
    4
    Joined:
    Apr 26, 2017
    No, there is no error, in the previous version of the server everything worked fine, but with the last update no longer works.
     
  6. croky

    croky Active Member

    Messages:
    68
    Likes Received:
    3
    Joined:
    Jan 4, 2017
    You may have Client sender and you use player
     
  7. Mendes

    Mendes Member

    Messages:
    11
    Likes Received:
    1
    Joined:
    May 24, 2017
    Check your meta.xml, if you haven't something wrong like assembly etc
     

Share This Page