Jump to content
Sign in to follow this  
MrMilli

Help with config.cpp

Recommended Posts

Need another set of eyes to take a look at this, I'm just picking this stuff up, so as a start i'm trying to group BIB's new UK RM units.

This is what I've got at the moment, which isn't working.

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgGroups

{

class West

{

name="$STR_WEST";

class bibukgrp

{

name="BIB UK Infantry";

class BIBUK

{

name="Royal Marine Section";

class Unit0

{

name="1";

side=1;

vehicle="bib_royalmdpm_o";

rank="Sergeant";

position[]={0,5,0};

};

class Unit1

{

name="2";

side=1;

vehicle="bib_royalmdpm_s";

rank="Corporal";

position[]={-10,0,0};

};

class Unit2

{

name="3";

side=1;

vehicle="bib_royalmdpm_s";

rank="Corporal";

position[]={10,0,0};

};

class Unit3

{

name="4";

side=1;

vehicle="bib_royalmdpm_x";

rank="Private";

position[]={15,0,0};

};

class Unit4

{

name="5";

side=1;

vehicle="bib_royalmdpm_z";

rank="Private";

position[]={-15,0,0};

};

class Unit5

{

name="6";

side=1;

vehicle="bib_royalmdpm_g";

rank="Private";

position[]={20,0,0};

};

class Unit6

{

name="7";

side=1;

vehicle="bib_royalmdpm";

rank="Private";

position[]={-20,0,0};

};

class Unit7

{

name="8";

side=1;

vehicle="bib_royalmdpm";

rank="Private";

position[]={25,0,0};

};

class Unit8

{

name="9";

side=1;

vehicle="bib_royalmdpm";

rank="Private";

position[]={25,0,0};

};

class Unit10

{

name="9";

side=1;

vehicle="bib_royalmdpm";

rank="Private";

position[]={25,0,0};

};

};

};

};

<span id='postcolor'>

So, any idea's, at the moment its not showing up in the groups box at all.

Share this post


Link to post
Share on other sites

Ok,

One or two things here.

1./ You need another '};' at the end.

2./ Units 7, 8 and 10 are all set to occupy the same space.

position[]={25,0,0};

This shouldn't be too much off a problem, it will just look messy.

3./ Units 8 and 10 both have the same name.

name="9";

4./ What happened to poor unit 9? smile_o.gif

Planck

Share this post


Link to post
Share on other sites

Don't you guys realise you're replying a topic over 3 years old crazy_o.gif

Quote[/b] ]Posted on Jan. 01 2003,19:45

Or am I missing something huh.gif

Share this post


Link to post
Share on other sites
Quote[/b] ]

Or am I missing something

No, HK its me that was missing something.

I didn't check the date of the first post. tounge2.gif

I only checked the date of the last post. confused_o.gif

Never mind.......it might help someone else......maybe.......possibly. whistle.gif

Planck

Share this post


Link to post
Share on other sites

I know it was old. smile_o.gif

It was relivent to my search and my reply will hopefully hint to people that indentation is important to make things readable. thumbs-up.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×