Okay, well it really depends on what patch level of circle u have, I have pl14 and it has gecho in the stock version. But the i undeclared identitifier is related to the first error and the rest all are all related where u fix one thing an basicly they all are fixed because it's usally 1 varible that screws up the functions. And now that I look at the line numbers I notice that the problem is that i is undeclared. If this command was put in by u try changeing the name to like y or something and make sure it's declared by struct char_data *y; but from what see the main problem is the redefinition of i. I'm not absaluty sure on this so don't blame me if it really messes up you circle mud. - Matt > ObCircle: > > I'm trying to put in the gemote command, but when I compile, I get the > STRANGEST errors in my comm.c file in the act() part. > Here's the errors: > c:\Circle\src\comm.c(2206) : error C2371: 'i' : redefinition; different > basic types > c:\Circle\src\comm.c(2340) : error C2065: 'i' : undeclared identifier > c:\Circle\src\comm.c(2340) : warning C4047: '=' : 'int ' differs in > levels of indirection from 'struct descriptor_data *' > c:\Circle\src\comm.c(2340) : error C2223: left of '->next' must point to > struct/union > c:\Circle\src\comm.c(2341) : error C2223: left of '->connected' must > point to struct/union > c:\Circle\src\comm.c(2341) : error C2223: left of '->character' must > point to struct/union > c:\Circle\src\comm.c(2343) : error C2223: left of '->character' must > point to struct/union > c:\Circle\src\comm.c(2345) : error C2223: left of '->character' must > point to struct/union > c:\Circle\src\comm.c(2345) : error C2223: left of '->character' must > point to struct/union > c:\Circle\src\comm.c(2347) : error C2223: left of '->character' must > point to struct/union > c:\Circle\src\comm.c(2347) : fatal error C1903: unable to recover from > previous error(s); stopping compilation > > Here's some of the code from the top of act(): > struct obj_data *dg_target = NULL; > char *dg_arg = NULL; > struct descriptor_data *i; // Added this for gemote, line 2206 > > Here's from the rest of the errors > if (type == TO_VICT) { > if ((to = (struct char_data *) vict_obj) && SENDOK(to)) > perform_act(str, ch, obj, vict_obj, to); > return; > } > /* ASSUMPTION: at this point we know type must be TO_NOTVICT or TO_ROOM > or TO_GMOTE*/ > if (type == TO_GMOTE) { > for (i = descriptor_list; i; i = i->next) { // Line 2340 > if (!i->connected && i->character && // Line 2341 > > !PRF_FLAGGED(i->character, PRF_NOGOSS) && // Line 2343 > > !PLR_FLAGGED(i->character, PLR_WRITING) && // Line 2345 > > !ROOM_FLAGGED(i->character->in_room, ROOM_SOUNDPROOF)) { // Line 2347 > > send_to_char(CCYEL(i->character, C_NRM), i->character); > perform_act(str, ch, obj, vict_obj, i->character); > send_to_char(CCNRM(i->character, C_NRM), i->character); > } > } > return; > } > /* GMOTE_END */ > > Anyone know what might be going on? Thanks, > > -Phillip > > Phillip Ames | Satisfaction is not guaranteed. > kirk47@juno.com | -Ferengi Rule of Acquisition #19 > ICQ: 8778335 | AOL IM: Grathol > http://members.xoom.com/Gowron/index.html(Unfinished) > > ___________________________________________________________________ > You don't need to buy Internet access to use free Internet e-mail. > Get completely free e-mail from Juno at http://www.juno.com > Or call Juno at (800) 654-JUNO [654-5866] > > +------------------------------------------------------------+ > | Ensure that you have read the CircleMUD Mailing List FAQ: | > | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | > +------------------------------------------------------------+ +------------------------------------------------------------+ | 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