Interesting problem.. because it looks like you've done everything right.
My first guess would be you didn't do a clean compile (delete all the .o
files and remake everything) after adding the bank variable, but then I
can't see why the pfile would load when you take out the bank variable out
of the pfile...
If you're any good with gdb, you might use it to step through the character
loading and logging in process and make sure everything's going ok.
If you're not good with gdb, put printfs all over the place to show what's
in those 2 variables at each step in the char loading and logging in process
for a similar effect.
--Palrich.

> I've written a bank account code for my mud.  The bank account system
> works fine, but the problem is in writing and reading the bank info from
> the pfile.  The bank account info is written to the pfile fine, but when a
> character tries to log in after quitting out (or after creating
> initially), it says the password is invalid.  I know the password is not
> invalid, so I figure the problem is with reading the pfile, probably due
> to something buggy in fread_char or fwrite_char.  Here's what I have done.



Reply via email to