<snip>
The clan table is identicle to the corp table.  And one more question.  I
want to have it so that if someone is less then level 10, then there are two
spaces between the opening bracet (  [ --1 .....), greater than or equal to
10 but less than 100, to only have 1 space: (  [ -10....) and greater than
100 to have no spaces ( [ 100 .....).  Thats so that you don't get stuff
like:

[ 1  Asian IMP  Citizen  Ashton ] Tarian is tired.
[10  Asian IMP  Citizen  Ashton ] Tarian
[110  Asian IMP  Citizen  Ashton ] Tarian

I want it to be:

[ --1  Asian IMP  Citizen  Ashton ] Tarian is tired.
[ -10  Asian IMP  Citizen  Ashton ] Tarian is tired.
[110  Asian IMP  Citizen  Ashton ] Tarian is tired.

so that everything lines up. thanks a bunch. later everyone.
-tarian
</snip>

I can't answer ur other questions, but I can answer this one.

You're going to need a 3 tier if statement.

if ( ch->level < 10 )
{
  sprintf( buf, "--%d ........", ch->level, ...);
}
else if ( ch->level >= 10 || ch->level < 100 )
{
  sprintf( buf, "-%d ......", ch->level, ....);
}
else
{
  sprintf( buf, "%d .....", ch->level, .... );
}


How that helps.

Rheede


Reply via email to