> On Sun, Feb 10, 2002 at 08:10:32PM -0500, [EMAIL PROTECTED] wrote:
> > ok i added my clan code, the clantalk is defined in interp.c and little
> > modifications had to be done to act_comm.c but when i type clan or
clantalk
> > (whatever) i get nothing, no returns, no channel, nothing. here is my
snip of
> > my clantalk. I've had one other coder look at it and it boggled him too.
>
> Did you run it in GDB? If so, what happened? If not, why not? Your
> typo is so fscking obvious, it's not funny to point it out. And
> fire the other coder too, I don't [EMAIL PROTECTED] h1z sk1llz.
>
> Edwin

Unless I miss my guess Edwin is refering to the following:


/* clan channels */
void do_clantalk( CHAR_DATA *ch, char *argument )
    {
    char buf[MAX_STRING_LENGTH];
    DESCRIPTOR_DATA *d;
        {
        if (!is_clan(ch) || (ch->clan == 0))
            send_to_char("You aren't in a clan.\n\r",ch);
        return;
        }
<snipped>

Now logically speaking, what looks _wrong_ about the placement of the
second { here? could maybe mean to have it _after_ the ifcheck?
The way it is now you:
    a)hit the ifcheck
    b)parse for truth
    c)_only_ do the line directly after the ifcheck if true
    d)then it does.... return. (nifty the way logic works inst it?)

-evil grin-


Steve, bored and at work


Reply via email to