you have to defien backstr at the top of the funtion so at the top add char *backstr; and change that line to backstr = NULL; and that should fix the rest Bobby Solis wrote: > The below is taken out of act.comm.c where 2 errors and 2 warnings were > found: > > /* ok.. now let's see what kind of stuff we've found */ > if (GET_OBJ_TYPE(pen) != ITEM_PEN) > act("$p is no good for writing with.", FALSE, ch, pen, 0, TO_CHAR); > else if (GET_OBJ_TYPE(paper) != ITEM_NOTE) > act("You can't write on $p.", FALSE, ch, paper, 0, TO_CHAR); > E1 char *backstr = NULL; > > /* Something on it, display it as that's in input buffer. */ > if (paper->action_description) { > E2&W1 backstr = str_dup(paper->action_description); > send_to_char("There's something written on it already:\r\n", ch); > send_to_char(paper->action_description, ch); > } > > else { > /* we can write - hooray! */ > act("$n begins to jot down a note.", TRUE, ch, 0, 0, TO_ROOM); > send_editor_help(ch->desc); > W2 string_write(ch->desc, &paper->action_description, MAX_NOTE_LENGTH, 0, > backstr); > } > > Error 1 (E1): syntax error : missing ';' before 'type' > > Error 2 (E2): 'backstr' : undeclared identifier > > Warning 1 (W1): '=' : 'int ' differs in levels of indirection from 'char *' > > Warning 2 (W2): 'string_write' : pointer mismatch for actual parameter 5 > > After all this I'm pondering if OLC is worth it? > > _________________________________________________________________ > Send and receive Hotmail on your mobile device: http://mobile.msn.com > > -- > +---------------------------------------------------------------+ > | 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/ | > +---------------------------------------------------------------+ -- +---------------------------------------------------------------+ | 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