I could be wrong but I think you are going to run into formating
problems if the numbers of players in the player file is not a nice
divisible of 3. I would suggest putting in something like the
following. And, do u run into problems with the last player? I
only use "i < top_of_table" instead of "i <= top_of_table".
for (i = 0; i < top_of_p_table + 1; i++)
{
sprintf(buf, "%s %-20.20s", buf, (player_table + i)->name);
c++;
if(c == 3)
{
c = 0;
send_to_char(buf, ch);
send_to_char("\r\n", ch);
sprintf(buf, "");
}
}
/* ADD THIS */
> if(c)
> {
> send_to_char(buf, ch);
> send_to_char("\r\n", ch);
> }
You can, of course, use sprintfs instead of send_to_char and use
page_string at the end.
-Haddixx
--
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Haddixx | -=-=-Implementor of Avalanche MUD-=-=- |
+ Brian M. Menges + Running at: 143.207.31.45 8000 +
| haddixx@megamed.com | Web Page: http://www.megamed.com/~haddixx |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://cspo.queensu.ca/~fletcher/Circle/list_faq.html |
+-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/07/00 PST