[Newbie] Tables?

From: Griffin Hernandez (griffent@SOFTCOM.NET)
Date: 01/01/01


Hello all, Happy New Year!
I am trying to put stats in a nice table that looks nice
sprintf(buf, "+------------+------------------------------------+-----------
-----+\r\n");
 send_to_char(buf,ch);
 sprintf(buf, "|            |                                    |Age: %d
yrs old |\r\n", GET_AGE(ch)); // HP: %n/%n Mana: %n/%n Vit: %n/%n
 send_to_char(buf,ch);
 sprintf(buf, "| Str: %d    +------------------------------------+----------
------+\r\n", GET_STR(ch));
 send_to_char(buf,ch);
 sprintf(buf, "| Int: %d    |                                    |
Experiance   |\r\n", GET_INT(ch));
 send_to_char(buf,ch);
 sprintf(buf, "| Wis: %d    |
|                |\r\n", GET_WIS(ch));
 send_to_char(buf,ch);
 sprintf(buf, "| Con: %d    |                                    | Total
Exp:     |\r\n", GET_CON(ch));
 send_to_char(buf,ch);
 sprintf(buf, "| Cha: %d    |                                    | %
d             |\r\n", GET_CHA(ch), GET_EXP(ch));
 send_to_char(buf,ch);
 sprintf(buf, "| Dex: %d    |
|                |\r\n", GET_DEX(ch));
 send_to_char(buf,ch);
 sprintf(buf, "|            |                                    | To
Level:      |\r\n");
 send_to_char(buf,ch);
 sprintf(buf, "|            |                                    |  %
d            |\r\n", level_exp(GET_CLASS(ch), GET_LEVEL(ch) + 1) - GET_EXP
(ch));
 send_to_char(buf,ch);
 sprintf(buf, "+------------+------------------------------------+----------
------+\r\n");
 send_to_char(buf,ch);

but when i do it the | 's arn't even
I dont know how to do this.. can anyone help?
thx
Griffin.

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/03/01 PST