Actually, instead of removing buf, you might want to look into doing a page_string instead of send_to_char so when 100 or so players are on, you don't spam the poor 'who'er. -- Billy H. Chan firstname.lastname@example.org email@example.com CogSci/CompSci http://www.csua.berkeley.edu/~bhchan ResumeInside From: ShadowLord <firstname.lastname@example.org> To: email@example.com Subject: Re: NEWBIE: bug in "who" > num_can_see++; > sprintf(buf, "%s[%2d %2d %2d %2d %2d] %s %s", buf, Well, duh... What do you expect to happen when you append "buf" to it and then send_to_char it? The first pass buf is normal, the second time it contains the first player in who plus what you just added, the third time all previous players plus the one you just added it. Perhaps you should remove "buf" from the parameter list.
This archive was generated by hypermail 2b30 : 12/18/00 PST