Re: HELP! Buildwalk in BPL21

From: Kevin Dethlefs (
Date: 11/16/02

genwld.c: In function `buildwalk':
genwld.c:540: `buf' undeclared (first use in this function)
genwld.c:540: (Each undeclared identifier is reported only once
genwld.c:540: for each function it appears in.)
genwld.c:541: parse error before `room'
genwld.c:546: warning: passing arg 1 of `add_room' from incompatible pointer
genwld.c:538: warning: unused variable `tmp_room'

I always get that buf undeclared thing.... no matter where it is. I been
putting in "send_to_char(ch, "Whatever");" is there anything wrong with this
here? and how do I make it so I don't get the buf error?

Lines 538 to 550:

      struct room_data tmp_room;
      room->name = strdup("New BuildWalk Room");
      sprintf(buf, "This unfinished room was created by %s.\r\n",
      room->description = str_dup(buf);
      room->number = vnum;
      room->zone = world[ch->in_room].zone;

      /* Add the room */

      /* Link rooms */
      CREATE(EXIT(ch, dir), struct room_direction_data, 1);

Help, please? I really should learn more C... :(.

   | FAQ: |
   | Archives: |
   | Newbie List:   |

This archive was generated by hypermail 2b30 : 06/25/03 PDT