Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ ROM
➜ Running the server
➜ need help with a marriage code
need help with a marriage code
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Llandryl
(1 post) Bio
|
Date
| Fri 24 Sep 2004 07:58 AM (UTC) |
Message
| 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
| Top |
|
Posted by
| Trom
(82 posts) Bio
|
Date
| Reply #1 on Tue 02 Nov 2004 05:00 PM (UTC) |
Message
| This you probably noticed but it seems like PLR_LOG is not a defined act flag.
"if ( ( !IS_NPC(ch) && IS_SET(ch->act, PLR_LOG) )"
Did you forget to paste part of the script in merc.h?
Now i've only coded rom/rot but that script maybe intended
for a codebase that your not using.. just ideas, if anyone has any better suggestions reply pls. | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
10,071 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top