Indent, indent, indent....
write_to_buffer(d,"The following classes are available:\n\r",0);
pos = 0;
for (iClass = 0; iClass < MAX_CLASS; iClass++ ) {
if (!class_table[iClass].remort_class ||
(class_table[iClass].remort_class && IS_SET(ch->act,PLR_REMORT)))
if ( iClass > 0 )
sprintf(newbuf, "%6s%-24s", " ", class_table[iClass].name);
write_to_buffer(d,newbuf,0);
pos++;
if (pos >= 2) {
write_to_buffer(d,"\n\r",0);
pos = 0;
}
}
This is how your code is executed now.
It should look like: mage cleric thief warrior (not your cleric
mage thief warrior order). This should give you enough information
to find out what's going wrong.
Edwin
--
Edwin Groothuis | Personal website: http://www.MavEtJu.org
[EMAIL PROTECTED] | Interested in MUDs? Visit Fatal Dimensions:
------------------+ http://www.FatalDimensions.org/