A few probs....

From: Kevin Dethlefs (Demortes@msn.com)
Date: 04/01/02


I have tried putting in clans for bpl18, somewhat modified. Unfortunatly, I
want this clan system so bad, but it writes to BINARY pfiles, I have ascii.
I need help to get this to work. I believe I know exactly where the trouble
code is, but I can't find out how to make it work.


  void save_char_file_u(struct char_file_u st)
{
FBFILE *fl;
int player_i;
int find_name(char *name);

if((player_i = find_name(st.name)) >=0 )
  {
  fseek(fl, player_i * sizeof(struct char_file_u), SEEK_SET);
  fwrite(fl, &st, sizeof(struct char_file_u), 1);
  }
}

that function seems to screw up, and then it wont save the clans file right.
Any help at all would be appreciated. Also...

The ascii pfiles will not save anymore. I don't know why, but I had to
capitalize all the directories, and all the pfiles. EXAMPLE:
lib/pfiles/d/demortespfile was changed to lib/pfiles/D/Demortespfile. I am
trying to find out how to save with the capitalization in the directory
names, but I don't know how it changed to read it like that in the first
place. Any help on this issue would be greatly appreciated, as this causes
problems with players also.

If you need more info, please let me know. I need a lot of help right now.

Kevin Dethlefs

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT