Greetings CircleMUD Coders, I have recently been working on a new piece of code that will me to attach a simple, one line, message to the bottom of do who. Here is my code for the following: +++++++++++++++++ act.informative.c +++++++++++++++++ (NEAR THE TOP) +char *whomessage; (In ACMD(do_who), near the end) +sprintf(buf + strlen(buf), "&R[&r%s&R]&n\n", *whomessage); +ACMD(do_whomessage) { +one_argument(argument, arg); +*whomessage = arg; +} Seems simple, eh? Well whenever I type 'who' or I use the whomessage command the mud crashes. And ideas why? Thanks, Ramsey Stone _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- +---------------------------------------------------------------+ | 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/06/01 PST