act_info.c:2795: error: structure has no member named `history'
struct pc_data
char * history;
#include <stdio.h>
int main()
{
printf("\nHello World\n");
}
#include <stdio.h>
int main( void )
void do_history( CHAR_DATA *ch, char *argument )
{
char buf[MAX_STRING_LENGTH];
if (argument[0] == '?')
{
sprintf(buf,"%s", ch->pcdata->history );
send_to_char(buf,ch);
} else
{
string_append( ch, &ch->pcdata->history );
}
return;
}
I'm trying to add history, this is what I've done:
act_info.c
further down in act_info.c
nanny.c (just under CON_BREAK_CONNECT)
save.c
Under 'fwrite_char'
save.c
Under 'fread_char' in case H
interp.c
interp.h
When I try to 'make clean' and make- this is what I get.
act_info.c: In function `do_history':
act_info.c:2795: error: structure has no member named `history'
act_info.c:2799: error: structure has no member named `history'
make: *** [obj/act_info.o] Error 1