Re: [Circle] compiling error...

From: Rasmus 'Con' Ronlev (raro94ab@hp4.econ.cbs.dk)
Date: 11/17/96


On Sun, 17 Nov 1996, Superman wrote:

> HELP!!!!! PLEASE!!!!! *beg*
> db.c:1846: incompatible types in assignment
> db.c:1847: incompatible types in assignment
> here are the lines of code:
> ch->player_specials->saved.poofin = st->player_specials_saved.poofin;
> ch->player_specials->saved.poofout = st->player_specials_saved.poofout;

Well, there are a few things to consider.. in the part I cut away you
describe something to be char poofin[MAX_xxx+1]. In that case you should
use:

ch->player_specials->saved.poofin = str_dup{st->palayer.....};

Hope you get the drift. In the case of just doing a normal = without any
strcpy/str_dup calls all you will get is trouble if it will work at all
*g* This might just be what the error is about (not too strong in the
error messages the compilers give to be honest).
Secondly check if the 'adresses' of your assignments actually match the
ones they should. i.e. does player_specials->saved contain a char
poofin[xx] declaration and stuff like that.

Hope it helps, if not well, then send another mail *grin*.

Regards,
Con.

d.
--
     Rasmus Rønlev DOEK'94      WWW: http://www.econ.cbs.dk/people/raro94ab
     Student instructor         MUD: exiled.mud.circlemud.org 5000
                                         199.199.16.100 5000
       Student, B.Sc in Computer Science and Business Administration.

+-----------------------------------------------------------+
| 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/18/00 PST