make a macro if IS_NULLSTR(clan) IS_NULLSTR(str) ((str) == NULL || (str)[0] == '\0')
and use that everywhere. makes it easier :) ----- Original Message ----- From: "Davion Kalhen" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Saturday, November 01, 2003 7:55 PM Subject: Re: Question > > if(clan != null) > is wrong. It should be > > if(clan[0] == '\0') > > or even better, > if( ( iClan = clan_lookup(clan) ) != -1) > > Davion > > >From: [EMAIL PROTECTED] > >To: [email protected] > >Subject: Question > >Date: Sat, 01 Nov 2003 06:05:48 -0500 > > > >I've stumbled upon a problem list, and im asking for help. > > > >My problem is, im modifying a who-was (snippet on list) to let me see the > >clan of offline players. The problem is, it will not show the who list > >name of the clan, just the plain name (the one you use like this "guild atm > >watcher") How do i get the who name to show up even though the player > >isnt online? > > > >here is some code i've been fiddling with. > >char *clan; > >*snip* > >if ( !str_cmp( word, "Clan" ) ) > > { > > clan = fread_string(fp); > > fMatch = TRUE; > > break; > > } > >*snip* > >if (clan != NULL) > > { > > > > sprintf(buf, "{R<{r<{xClan{r>{R>{x: {G%16s{x\n\r", > >clan_table[clan].who_name ); > >/* was just clan, but tried to make it show the who name here*/ > > send_to_char(buf, ch); > > } > > > >i hope i have explained myself at least enough for someone to point me in > >the right direction :) i've been at this for hours, and i dont want to > >give up! thanx in advance! > >Atm, of FE > > > >__________________________________________________________________ > >McAfee VirusScan Online from the Netscape Network. > >Comprehensive protection for your entire computer. Get your free trial > >today! > >http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397 > > > >Get AOL Instant Messenger 5.1 free of charge. Download Now! > >http://aim.aol.com/aimnew/Aim/register.adp?promo=380455 > > > >-- > >ROM mailing list > >[email protected] > >http://www.rom.org/cgi-bin/mailman/listinfo/rom > > _________________________________________________________________ > The new MSN 8: advanced junk mail protection and 2 months FREE* > http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca > > > -- > ROM mailing list > [email protected] > http://www.rom.org/cgi-bin/mailman/listinfo/rom > >

