dammit...sorry about that.
if (GET_LEVEL(tch) >= LVL_IMMORT)
switch (GET_LEVEL(tch))
{
case 100: lvl_cl="Immort";break;
case 101: lvl_cl="Demi";break;
case 102: lvl_cl="Diety";break;
case 103: lvl_cl="LGod";break;
case 104: lvl_cl="Hlpr";break;
case 105: lvl_cl="MGod";break;
case 106: lvl_cl="HCdr";break;
case 107: lvl_cl="HBld";break;
case 108: lvl_cl="Ambass";break;
case 109: lvl_cl="HGod";break;
case 110: lvl_cl="HMFIC";break;
}
** the above works great....**
else
{
send_to_char("made it to the sprintf",ch);
sprintf(lvl_cl, "%2d %s",GET_LEVEL(tch), CLASS_ABBR(tch));
** ^ this is causing a crash...
** when i comment it out, i get the "made it..." message.
}
if (short_list)
{
sprintf(buf, "%s[%s] %-12.12s%s%s",
(GET_LEVEL(tch) >= LVL_IMMORT ? CCYEL(ch, C_SPR) : ""),
lvl_cl, GET_NAME(tch),
**this works great ^
(GET_LEVEL(tch) >= LVL_IMMORT ? CCNRM(ch, C_SPR) : ""),
((!(++num_can_see % 4)) ? "\r\n" : ""));
send_to_char(buf, ch);
i have dug through my c books, i'm pretty sure i'm using it right but
i'll be damned if i can see the error, i'm sure its something simple i'm
just overlooking. i even went so far as to init
lvl_cl='\0'
even though it doesnt need it.
any help here...? or slaps in the face(either would work equally well)
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://cspo.queensu.ca/~fletcher/Circle/list_faq.html |
+-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST