uff Edwin you need sleep you missed merc.h On Thu, 6 Jun 2002, Edwin Groothuis wrote:
> On Thu, Jun 06, 2002 at 04:02:49AM -0700, Matt Foltz wrote: > > I added a field to my objects called owner. Basically > > players can buy ownership on their items, preventing > > other players from wearing them. It works fine, > > except for it doesn't save to the object. Here's my > > line in save.c: > > > > if (obj->owner != NULL) > > fprintf( fp, "Owner %s\n", obj->owner ); > > > > then I have the KEY line: > > > > KEY( "Owner", obj->owner, fread_string( fp ) ); > > > > But when I log off it never saves the owner to the > > object. Anyone have an idea why? > > Does it come in the playerfile? (hey, that's a hint on how to find > out where it goes wrong!) > And how does the owner-field of an object look like? (oh my, another > place where it can go wrong) > And if your KEY() statement in the right place of the switch-statement > (Nobody ever told me I had to check that!) > > Edwin (tired) > -- > Edwin Groothuis | Personal website: http://www.MavEtJu.org > [EMAIL PROTECTED] | Interested in MUDs? Visit Fatal Dimensions: > bash$ :(){ :|:&};: | http://www.FatalDimensions.org/ > > -- > ROM mailing list > [email protected] > http://www.rom.org/cgi-bin/mailman/listinfo/rom >

