I am trying to handpatch code from eQuoria's site that will add both DGScripts and OLC to my Circle 3 bpl 12 . However, I have encountered a few errors which I just cannot figure out (I'm new at this). Probably simple errors but after days of looking through the code and getting nowhere I decided I need some help here. :) BTW...I'm using VC 5 on a Win95 system. Just in case that is useful info. Ok...here's the errors: act.other.c(729) : error C2079: 'fbuf' uses undefined struct 'stat' act.other.c(765) : warning C4013: 'stat' undefined; assuming extern returning int act.other.c(769) : error C2224: left of '.st_size' must have struct/union type the code for error 1 and warning: ACMD(do_gen_write) { FILE *fl; char *tmp, *filename, buf[MAX_STRING_LENGTH]; struct stat fbuf; extern int max_filesize; time_t ct; the code for error 2: if (fbuf.st_size >= max_filesize) { send_to_char("Sorry, the file is full right now.. try again later.\r\n", ch); return; The code above worked fine before I added the patch so I'm assuming its one of the files that was changed that is causing the problem but I have been unable to pinpoint the culprit code. The only other file with errors is olc.c: olc.c(283) : error C2143: syntax error : missing ';' before 'type' olc.c(292) : error C2065: 'entry' : undeclared identifier olc.c(292) : warning C4047: '=' : 'int ' differs in levels of indirection from 'struct olc_save_info *' olc.c(292) : error C2223: left of '->next' must point to struct/union olc.c(294) : error C2223: left of '->type' must point to struct/union and here is the code: void olc_saveinfo(struct char_data *ch) { struct olc_save_info *entry; if (olc_save_list) send_to_char("The following OLC components need saving:-\r\n", ch); else send_to_char("The database is up to date.\r\n", ch); for (entry = olc_save_list; entry; entry = entry->next) { sprintf(buf, " - %s for zone %d.\r\n", save_info_msg[(int) entry->type], entry->zone); send_to_char(buf, ch); } } If anyone has encountered this or has an idea what code may be causing this error I would appreciate any help you can offer. Remember I openly admit that I'm new at this so please don't flame me if the error is obvious. -Casandra +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST