What is your compiler trying to tell you when it gives you this error:

gcc -Wall -O3 -ggdb -DOLD_RAND -DNOCRYPT -c -o mxp.o mxp.c
mxp.c:195: parse error at null character
make: *** [mxp.o] Error 1

And this is my code:

void do_mxp( CHAR_DATA *ch, char *argument )
{
        if ( !ch->desc )
                return;

        if ( !ch->desc->mxp )
        {
                send_to_char( "Sorry, your client does not support
MXP.\n\r", ch );
                return;
        }

        if ( IS_SET( ch->act, PLR_MXP ) )
        {
                REMOVE_BIT( ch->act, PLR_MXP );
                send_to_char( "MXP has been disabled.\n\r", ch );
        }
        else
        {
                SET_BIT( ch->act, PLR_MXP );
                mxp_to_char( ch, "<B><I><U>MXP has been
enabled!</U></I></B><BR>", MXP_ALL );
        }
} <<<<<<<<< Line # 195

???

What's up with this? Can anyone see anythign wrong? Need more code than
that?

-Eru

P.S. Thanks guys, too.

Reply via email to