> Subject: Ok, im trying to screw with the prompt sys
> Date: Mon, 11 Mar 1996 19:40:39 -0700
> From: Jereriah Manning <jmanning@bvsd.k12.co.us>
> if(percentofmaxmana < 100) && (percentofmaxmana)
> {
> sprintf(prompt, "%sMG: burning ", prompt);
> }
> I have a feeling the problem might lie in the sprintf too
> anyhelp would be appreciated...BTW I am just editing the old
> prompt stuff. ALSO...what is the *prompt = ""; line for?
> Again i hope my niaveness doesnt spam everyone with flames...
>
Use strcat instead. ie. strcat(prompt,"MG: burning");
Make sure your prompt string-array is long enough to append to.
rusty@oswego.edu
- or -
sawyer@erc.cat.syr.edu
This archive was generated by hypermail 2b30 : 12/07/00 PST