[Circle] Code from Snippets Page

From: James Snow (sno@mindvox.com)
Date: 07/28/96


Well, I added in the list players command from the snippets page, and
everything was dandy for a while, and then I noticed that it picks up bits
and pieces of other things and throws them in before the player list.

Like occasionally the end of a who, or the last wizh, or sometimes even the
last thing Puff said.

I assume it just needs a simple change, but in my poking around at it all I
did was make it a little more screwy. So...

ACMD(do_players)
{
  int i, count = 0;

  for (i = 0; i <= top_of_p_table + 1; i++) {
    sprintf(buf, "%s  %-20.20s", buf, (player_table + i)->name); <-- I
think it's in here
    count++;
    if (count == 3) {
      count = 0;
      send_to_char(buf, ch); <---- Or maybe
      send_to_char("\r\n", ch); <--- one of
      sprintf(buf, "");  <----- these three
    }
  }
}


Apologies if this has already been posted and replied to, I have a little
trouble keeping up with everything on this list.


-sno


+ + + + + + + + + + +  ____    ___     ___   + + + + + + + + + + +
+     James Snow    + /',__\ / '_ `\  / __`\ +     Tai Moro!     +
+ + + + + + + + + + +/\__, `\/\ \/\ \/\ \L\ \+ + + + + + + + + + +
+  sno@mindvox.com  +\/\____/\ \_\ \_\ \____/+ I Will Not Serve! +
+ + + + + + + + + + + \/___/  \/_/\/_/\/___/ + + + + + + + + + + +


+-----------------------------------------------------------+
| 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