Re: [CODE] Info Channel

From: Pat O'Laughlin (polaughlin@STARIX.NET)
Date: 06/25/98


James Turner wrote:

> "Pat O'Laughlin" <polaughlin@STARIX.NET> writes:
>
> > For anyone who was wondering how to put an info channel on your MUD
> > (when player enters game, dies, levels etc.), here is how I did it:
> >
> > *** utils.h - at the bottom of the file ***
> >
> > void infochan(char *str, int level)
> > {
> >   char buf[MAX_STRING_LENGTH];
> [snip]
> > }
> >
> > *** end utils.h ***
>
> Don't put functions in .h files :)  Put them in .c files, then
> prototype them somewhere.  I'm assuming you meant to do that and just
> typo'd when you posted (lord knows I do that often enough).

    Yep, thats a typo alright.... thanks for pointing that out.... yes,
that function should go into utils.c :-)


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST