On Fri, 2 Aug 1996, Klaus Greve Fiorentini wrote: > I've followed the instructions below but when i try to use the "players" > command my mud simply crascres :( Same with me... > >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); > > count++; > > if (count == 3) { > > count = 0; > > send_to_char(buf, ch); > > send_to_char("\r\n", ch); > > sprintf(buf, ""); > > } > > } > >} > > The fix: for (i = 0; i <= top_of_p_table ; i++) { ^^^ no +1 sprintf(buf, "%s %-20.20s", buf, (player_table + i)->name); count++; if (count == 3) { count = 0; send_to_char(buf, ch); send_to_char("\r\n", ch); sprintf(buf, ""); } } if (count != 0) { send_to_char(buf, ch); send_to_char("\r\n", ch); } Jorge Guilherme +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+ From goamkows@kirk.geog.sc.edu Sun, 4 Aug 96 13:09:12 EDT X-SystemInfo: MyE-Mail: EMail X-Message-No: 3464 (database) From: goamkows <goamkows@kirk.geog.sc.edu> To: circle <circle@cspo.queensu.ca> Subject: [Circle] player in game help Date: Sun, 4 Aug 96 18:09:00 Message-ID: <CMM.0.90.0.839178552.goamkows@janeway.geog.sc.edu> Reply-To: goamkows@kirk.geog.sc.edu (goamkows) X-POP3-Rcpt: lk4150@per Return-Path: <@QUCDN.QueensU.CA:owner-circle@cspo.queensu.ca> Received: from QUCDN.QueensU.CA (QUCDN.QueensU.CA [130.15.126.2]) by per.cybercity.dk (8.6.12/8.6.12) with SMTP id SAA09115 for <lk4150@krull.dk>; Sun, 4 Aug 1996 18:11:43 +0200 Received: from cspo.queensu.ca by QUCDN.QueensU.CA (IBM VM SMTP V2R2) with TCP;Sun, 04 Aug 96 13:15:30 EDT Received: by cspo.queensu.ca (SMI-8.6/SMI-SVR4)id NAA07097; Sun, 4 Aug 1996 13:04:10 -0500 Received: from otis.cla.sc.edu by cspo.queensu.ca (SMI-8.6/SMI-SVR4) Received: from kirk.geog.sc.edu by otis.cla.sc.edu (4.1/SMI-4.1) Received: from janeway.geog.sc.edu by kirk.geog.sc.edu (4.1/SMI-4.1) Sender: owner-circle@cspo.queensu.ca Precedence: bulk i want to make a modification to the house function House_can_enter, so that others can enter a given house only if the owner is logged on to the game (basically, i want to allow houses to be broken into :) only, i'm not sure how to go about making this check. get_player_vis is a struct(?!) and i'm not sure how to go about using a struct to make this check (if you can at all). +-----------------------------------------------------------+ | 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