On Wed, 31 Jul 1996, Eric L. Helvey wrote:
> On Wed, 31 Jul 1996, Alex wrote:
> > ACMD(do_hp)
> > {
> Try adding:
>      sprintf(buf, "");
*buf = '\0';
> >    sprintf(buf, "%sYou have %d(%d) hit and %d(%d) movement
> >    points.\r\n", buf, GET_HIT(ch), GET_MAX_HIT(ch), GET_MOVE(ch),
                    ^^^^
Any time you do this, you have to put a null in the first element of the 
array.
> >    GET_MAX_MOVE(ch)); send_to_char(buf, ch);
> > }
----
Ole Gjerde
Homepage: http://www.pconline.com/~gjerde
Email: gjerde@plains.nodak.edu, gjerde@pconline.com
Studying Computer Science at North Dakota State University
"Unix _IS_ user friendly... It's just selective about who its friends are."
                                                  -- Unknown/Nem Schlecht
+-----------------------------------------------------------+
| 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/07/00 PST