try this: sprintf(buf, "Rooms that match your criteria:\r\n"); for (nr = 0; nr <= top_of_world && (world[nr].number <= last); nr++) { if (world[nr].number >= first) { sprintf(buf+strlen(buf), "%5d. [%5d] (%3d) %s\r\n", ++found, world[nr].number, world[nr].zone, world[nr].name); } } <-------<<<<<< page_string(ch->desc, buf, 1); (the buf+strlen(buf) is there because I had problems with that syntax when I installed the buffer code. it looks a little cleaner too (maybe even faster)) --Angus ______________________________ Reply Separator _________________________________ Well thats what I thought I did.. I dunno.. maybe I'm just to tired.. This is what I have. I was going to go through and use page_string() on all the commands that can possibly spam someone linkless. This is in rlist from the snippets page: sprintf(buf, "Rooms that match your criteria:\r\n"); for (nr = 0; nr <= top_of_world && (world[nr].number <= last); nr++) { if (world[nr].number >= first) { sprintf(buf, "%s%5d. [%5d] (%3d) %s\r\n", buf, ++found, world[nr].number, world[nr].zone, world[nr].name); } page_string(ch->desc, buf, 1); +------------------------------------------------------------+ | 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/08/00 PST