On Sat, Nov 10, 2001 at 05:27:00PM -0600, Tom Whiting wrote:
> ... replace CHAR_DATA spouse; with CHAR_DATA *spouse so you can actually
>     do "if (ch->pcdata->spouse!=NULL)" as a real test :-)
> -- Was done before the email was sent out, that was my bad there.. 

indeed.

> ... check that you proper initialize spouse in new_pc_data() ... 
> -- new_pc_data()??? According to grep and other tools, new_pc_data just
> don't exist here.

new_pcdata then. Be a little creative with what I tell you :-)


> (damned,this start to sound like somebody who never did any C
> programming). ... 
> -- Actually, this was put in from a snip, something I probably never
> should have done, but it   worked for what it was supposed to be at the
> time.. 
> compile your stuff with -Wall, because I think your assignments should
> 
> If %s IS the variable that I should be using, then why the compile
> errors?

%s is for "char *" types, you are supplying "CHAR_DATA *" types.
If you want a "temperary" pointer to the char-data, which will only
be used in this function for once and not for ever more, then just
let it point to the CHAR_DATA of the spouse and do the act with
that. Anyway, you have enough pointers now to fix your problem.

Edwin

-- 
Edwin Groothuis   |              Personal website: http://www.MavEtJu.org
[EMAIL PROTECTED] |           Interested in MUDs? Visit Fatal Dimensions:
------------------+                       http://www.FatalDimensions.org/

Reply via email to