[NEWBIE?] Structures

From: Brian Christopher Guilbault (guil9964@nova.gmi.edu)
Date: 09/17/96


I don't know if you'd call this a newbie question...you probabyl would, 
but anyway I'm using a highly modified version of the email registration 
code on the ftp site. I'm not registering players, but rather getting 
their email address and storing it in a file. I have the function done, 
but my question is this...where do I add the "email" field so that it can 
be written to, both in the file and in memory?

I have added lines in structs.h in struct char_player_data and in
struct char_file_u to the affect of:

char *email[EMAIL_LENGTH+1]

but when I try to do these two lines in interpreter.c, I get errors 
saying that there is no file named email in the structure. Here are the 
lines which cause the errors:

	CREATE(d->character->email, char, strlen(arg) + 1;
	strncpy(d->character->email, arg, EMAIL_LENGTH);

If anyone could tell me what I am missing or perhaps what I added that I 
shouldn't have? I know I've been coding muds a bit too long to ask this 
type of question, but honestly I have never added anything to the player 
structure before.

Thanks,
  -Brian



-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Brian Guilbault - GMI Engineering Institute
E-mail: guil9964@gmi.edu, dante@i-55.com
WWW: http://apollo.gmi.edu/~guil9964
QuarantineMUD: Telnet to exit1.i-55.com 4000
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+


+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/18/00 PST