Greetings all who will read this, im totally new to this whole coding thing, and
i find myself stumped, im trying to put in the marriage code found here and ive
got it all in and it all seems to be right but when i go to make i get this
error
interp.c: In Function 'Interpret' :
interp.c:483: error: PLR_LOG undeclared (first use in this function)
interp.c:483: error: (each undeclared identifier is declared only once
interp.c.483: error: for each function it appears in.)
make: *** [obj/interp.o] Error 1
im useing the quickmud rom with the olc and color
here is as far as i can tell the area thats messing up in the code
/* Replaced original block of code with fix from Edwin
* to prevent crashes due to dollar signs in logstrings.
* I threw in the above call to smash_dollar() just for
* the sake of overkill :) JR -- 10/15/00
*/
if ( ( !IS_NPC(ch) && IS_SET(ch->act, PLR_LOG) )
|| fLogAll
|| cmd_table[cmd].log == LOG_ALWAYS )
{
char s[2*MAX_INPUT_LENGTH],*ps;
int i;
ps=s;
sprintf( log_buf, "Log %s: %s", ch->name, logline );
/* Make sure that was is displayed is what is typed */
for (i=0;log_buf[i];i++)
{
*ps++=log_buf[i];
if (log_buf[i]=='$')
*ps++='$';
if (log_buf[i]=='{')
*ps++='{';
}
*ps=0;
wiznet(s,ch,NULL,WIZ_SECURE,0,get_trust(ch));
log_string( log_buf );
}
if (ch->desc != NULL && ch->desc->snoop_by != NULL)
{
write_to_buffer (ch->desc->snoop_by, "% ", 2);
write_to_buffer (ch->desc->snoop_by, logline, 0);
write_to_buffer (ch->desc->snoop_by, "\n\r", 2);
}
if (!found)
{
/*
* Look for command in socials table.
*/
if (!check_social (ch, command, argument))
send_to_char ("Huh?\n\r", ch);
return;
}
i never changed the part of the code that is now giving me errors in interp.c and it was working just fine before
i have been left clueless
any help at all would be greatly appreated
-Llandryl
i find myself stumped, im trying to put in the marriage code found here and ive
got it all in and it all seems to be right but when i go to make i get this
error
interp.c: In Function 'Interpret' :
interp.c:483: error: PLR_LOG undeclared (first use in this function)
interp.c:483: error: (each undeclared identifier is declared only once
interp.c.483: error: for each function it appears in.)
make: *** [obj/interp.o] Error 1
im useing the quickmud rom with the olc and color
here is as far as i can tell the area thats messing up in the code
/* Replaced original block of code with fix from Edwin
* to prevent crashes due to dollar signs in logstrings.
* I threw in the above call to smash_dollar() just for
* the sake of overkill :) JR -- 10/15/00
*/
if ( ( !IS_NPC(ch) && IS_SET(ch->act, PLR_LOG) )
|| fLogAll
|| cmd_table[cmd].log == LOG_ALWAYS )
{
char s[2*MAX_INPUT_LENGTH],*ps;
int i;
ps=s;
sprintf( log_buf, "Log %s: %s", ch->name, logline );
/* Make sure that was is displayed is what is typed */
for (i=0;log_buf[i];i++)
{
*ps++=log_buf[i];
if (log_buf[i]=='$')
*ps++='$';
if (log_buf[i]=='{')
*ps++='{';
}
*ps=0;
wiznet(s,ch,NULL,WIZ_SECURE,0,get_trust(ch));
log_string( log_buf );
}
if (ch->desc != NULL && ch->desc->snoop_by != NULL)
{
write_to_buffer (ch->desc->snoop_by, "% ", 2);
write_to_buffer (ch->desc->snoop_by, logline, 0);
write_to_buffer (ch->desc->snoop_by, "\n\r", 2);
}
if (!found)
{
/*
* Look for command in socials table.
*/
if (!check_social (ch, command, argument))
send_to_char ("Huh?\n\r", ch);
return;
}
i never changed the part of the code that is now giving me errors in interp.c and it was working just fine before
i have been left clueless
any help at all would be greatly appreated
-Llandryl