It all looks pretty fine to me, so I will give a wild guess :)
Did you compile all (all!) of your .c files after the change in CHAR_DATA (in 
merc.h)?

/Regicide

From: Garrett W. Hayman <[EMAIL PROTECTED]>
Subject: fread_char problem?


> (The things I've added have a '+' before them...)
> in  void fwrite_char (CHAR_DATA * ch, FILE * fp), I added
> 
>     if (ch->gold > 0)
>         fprintf (fp, "Gold %ld\n", ch->gold);
>     else
>         fprintf (fp, "Gold %d\n", 0);
>     if (ch->silver > 0)
>         fprintf (fp, "Silv %ld\n", ch->silver);
>     else
>         fprintf (fp, "Silv %d\n", 0);
> +    if (ch->bank > 0)
> +      fprintf (fp, "Bank %ld\n", ch->bank);
> +    else
> +      fprintf (fp, "Bank %d\n", 0);
> 
> 'bank' is one long int.  I set it up so that only gold can be deposited
> (no silver).
> 
> Then, in   void fread_char (CHAR_DATA * ch, FILE * fp),
> 
>         case 'B':
>           KEY ("Bamfin", ch->pcdata->bamfin, fread_string (fp));
>           KEY ("Bamfout", ch->pcdata->bamfout, fread_string (fp));
>           KEY ("Bin", ch->pcdata->bamfin, fread_string (fp));
>           KEY ("Bout", ch->pcdata->bamfout, fread_string (fp));
> +         KEY ("Bank", ch->bank, fread_number(fp));
> 
> 
> I've tried deleting the line in the pfile that contains the bank
> information, and the pfile will load fine after that. (No password error)
> 
> I don't have a lot of experience with how ROM reads the pfiles in, so I am
> kind of lost here.  Any help would be appreciated.
> 
> Thanks.
> 
> 
> -- 
> ROM mailing list
> [email protected]
> http://www.rom.org/cgi-bin/mailman/listinfo/rom
> 


Reply via email to