Umm what?
It's really rather simple actually:
fprintf(fp,  "Myvalue %s~\n",   ch->pcdata->myvalue ) //use your own
pointer
case 'M':
KEY( "Myvalue", ch->myvalue,    fread_string( fp ) );
I suggest you READ your code to know what it is doing. This is just an
example of how you CAN do it, but you need to KNOW and understand what
you're doing. If you don't, you end up with screwed pfiles, and some
VERY upset players.



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike
Sent: Sunday, June 02, 2002 11:20 AM
To: [email protected]
Subject: Fread and fwrite

I added a new sh_int to my char_data struct...for banking.  My problem
is
that I am LOUSY with the fread and fwrite stuff in save.c.  I am not
familiar with that area of the code yet...if someone could help me out
and
tell me how to add a new field to each player file for ch->bank, i would
be
really greatful.  I know how to add it to fread and fwrite, but is there
more that I need to do? *shrugs* if you could help me out, that would be
great.
-tarian


-- 
ROM mailing list
[email protected]
http://www.rom.org/cgi-bin/mailman/listinfo/rom





Reply via email to