I am having a problem with rlist only showing 639
vnums total. I tried adding to the char buf to see if
it would allow for the extra vnums being used but
nothing seems to work after the 639 vnum. What i did
was..
REDIT (redit_rlist)
{
ROOM_INDEX_DATA *pRoomIndex;
AREA_DATA *pArea;
char buf[MAX_STRING_LENGTH + 5000]; <--this
BUFFER *buf1;
char arg[MAX_INPUT_LENGTH];
bool found;
long vnum;
int col = 0;
one_argument (argument, arg);
pArea = ch->in_room->area;
buf1 = new_buf ();
/* buf1[0] = '\0'; */
found = FALSE;
for (vnum = pArea->min_vnum; vnum <=
pArea->max_vnum; vnum++)
{
if ((pRoomIndex = get_room_index (vnum)))
{
found = TRUE;
sprintf (buf, "[%5ld] %-17.16s",
vnum, capitalize
(pRoomIndex->name));
add_buf (buf1, buf);
if (++col % 3 == 0)
add_buf (buf1, "\n\r");
}
}
if (!found)
{
send_to_char ("Room(s) not found in this
area.\n\r", ch);
return FALSE;
}
if (col % 3 != 0)
add_buf (buf1, "\n\r");
page_to_char (buf_string (buf1), ch);
free_buf (buf1);
return FALSE;
}
but that didnt seem to help any. Does anyone have any
idea how to correct this problem?
__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/