Re: New command help please....

From: Magnus Lindström (dal97mlm@mds.mdh.se)
Date: 02/19/99


I would suggest you to use an array of strings. Each time a player logs
on you move every string one step towards the bottom of the list
and add the new player at top. like..

> I would think that if you had it save the information into a small buffer,
> (i.e. last 10 as you want) at the same time it logs it, all you have to do is
> display that information. I am sure there is some kind of code floating around
> that would have something similar that you could use as a basic template.
>
>
> Mike Kennedy wrote:
> >
> > Hi there!!!
> >
> > I'm looking to add a command to list say the last 10 people to have logged
> > on to the MUD (using Circle 3.0bpl14) to give a display something like :
> >
> > Player            Last On
> > ----------------------------
> > x                       2/2/99 at 8.30pm
> > y                       2/2/99 at 8.32pm
> > z                       3/2/99 at 9.00am


E-mail->   dal97mlm@mds.mdh.se
WWW->      mds.mdh.se/~dal97mlm/
ICQ UIN -> 3959951
_______________________________________


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST