Re: help please do_site command

From: George (greerga@CIRCLEMUD.ORG)
Date: 11/30/97


On Sun, 30 Nov 1997, Beyond Exiled wrote:

>basically it seems (player_table + i) dosent equal what is supposed to

Ugh, HTML, please don't.

>struct player_host_element *player_table;

Oooh..dangling pointer...how nice. :)

>for (i = 0;i <<= top_of_p_table; i++) {

You do _not_ want <<=, that's bit-shifting, you want <= for less than or
equal to.

>if (!str_cmp((player_table + i)->host, arg)) {

player_table was never initialized after it was defined above.  If you want
a global linked list, you might want to look at how 'world' is handled.

>  if (!((player_table + i)->unix_name)) {

Yet another garbage pointer.

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


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



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