Re: NEWBIE: warning C4133 C4013 when compiling

cwilson2@bigpond.net.au
Date: 12/03/02


Hi Jeff,

Thanks for the help, worked fine. Yes I am using bpl22.

I have added in the snippet so that MOB brag about killing PC's

The lines where is sends the information to a PC in the room is below,
      send_to_char(i->character, CCRED(i->character, C_SPR));
      act(brag, FALSE, ch, 0, i->character, TO_VICT | TO_SLEEP);
      send_to_char(i->character, CCRED(i->character, C_SPR));

However, this is the output I get,

Jubei is dead!  R.I.P.
╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠
╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠
@■Όχ↕╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠
╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠
Your blood freezes as you hear Jubei's death cry.╠╠╠╠╠╠╠╠╠╠╠╠╠╠
╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠
╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠
> Market Square

Any Ideas where I went wrong?

Cheers

Craig.

----- Original Message -----
From: Jeff Maynard <jlm@HE.NET>
Date: Wednesday, December 4, 2002 2:22 pm
Subject: Re: [CIRCLE] NEWBIE: warning C4133 C4013 when compiling

> From: "cwilson2@bigpond.net.au"
>
> > act.comm.c
> > c:\circlemud\srcwin\act.comm.c(585) : warning C4133: 'function' :
> > incompatible types - from 'char *' to 'struct char_data *'
> > c:\circlemud\circlemud\srcwin\act.comm.c(585) : warning
> > C4133: 'function' : incompatible types - from 'struct char_data *'
> > to 'const char *'
> > c:\circlemud\circlemud\srcwin\act.comm.c(587) : warning
> > C4133: 'function' : incompatible types - from 'char *' to 'struct
> > char_data *'
> > c:\circlemud\circlemud\srcwin\act.comm.c(587) : warning
> > C4133: 'function' : incompatible types - from 'struct char_data *'
> > to 'const char *'
> >
> > Lines in Code are;
> > send_to_char(CCRED(i->character, C_SPR), i->character);
> > act(brag, FALSE, ch, 0, i->character, TO_VICT | TO_SLEEP);
> > send_to_char(CCNRM(i->character, C_SPR), i->character);
>
> If you're using bpl22 and I would gather that you are, the
> send_to_charfunction has been changed and the i->character is the
> first parameter and
> not the 2nd anymore.
>
> send_to_char(i->character, CCRED(i->character, C_SPR))
>
> > The other one is,
> > c:\circlemud\srcwin\handler.c(67) : warning C4013: 'is_apart'
> > undefined; assuming extern returning int
> >
> > Line in Code is;
> > if(curtok && is_apart(str, curtok)){
>
> I assume that is_apart is defined somewhere in your code if you're
> getting a
> warning and not an error, so just find the declaration of the
> function and
> add it towards the top of the handler.c file to remove this
> warning.  There
> should be a set of external functions already defined there, so
> just add
> this one.
>
> Jeff
>
> --
>   +---------------------------------------------------------------+
>   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
>   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
>   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
>   +---------------------------------------------------------------+
>

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT