Log in to reply
 

car pack carcols syntax error


  • Banned

    Whenever I try to save I get an error message end tag Kits does not match start tag statmods. I know that it means there's a statmods tag that's not closed somewhere but I'm not sure how to determine where to place the closing tag. https://pastebin.com/YVgwEfqj Thanks for looking.



  • @QBit07
    Here you go :thumbsup:

    Original (Broken Syntax):

    		<!-- PREVIEW HORN - FOR MOD SHOP USE ONLY -->
            <Item>
              <identifier>XM15_HORN_03_PREVIEW</identifier>
              <modifier value="314232747" />
              <audioApply value="1.000000" />
              <weight value="0" />
              <type>VMT_HORN</type>
            </Item>
       <Item>
          <kitName>135_dodst_modkit</kitName>
          <id value="135" />	 	  
          <kitType>MKT_SPECIAL</kitType>
          <visibleMods>
          </visibleMods>
          <linkMods />
          <statMods>
            <Item>
              <identifier />
              <modifier value="100" />
              <audioApply value="1.000000" />
              <weight value="20" />
              <type>VMT_ENGINE</type>
            </Item>
    

    Corrected Syntax:

    		<!-- PREVIEW HORN - FOR MOD SHOP USE ONLY -->
            <Item>
              <identifier>XM15_HORN_03_PREVIEW</identifier>
              <modifier value="314232747" />
              <audioApply value="1.000000" />
              <weight value="0" />
              <type>VMT_HORN</type>
            </Item>
          </statMods> <!-- You were missing 'statMods' closing statement here -->
       </Item>         <!-- and 'Item' closing statement here -->
       <Item>
          <kitName>135_dodst_modkit</kitName>
          <id value="135" />	 	  
          <kitType>MKT_SPECIAL</kitType>
          <visibleMods>
          </visibleMods>
          <linkMods />
          <statMods>
            <Item>
              <identifier />
              <modifier value="100" />
              <audioApply value="1.000000" />
              <weight value="20" />
              <type>VMT_ENGINE</type>
            </Item>
    

    I just checked it quickly, so test it out ingame & make sure it functions as intended, as it's possible to have correct syntax but still have a broken file, if parts/sections are missing etc (I never checked for that).
    Any issues, give me a shout :thumbsup:

    How does one fix syntax errors?:
    It's really just a matter of a thorough manual search with clues from the error info (work backwards from there) & also Notepad++'s red vertical line that indicates where a statement starts & ends can be of some use too :thumbsup:


  • Banned

    Thanks I'll give it a try when I get home.


Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.