Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, DotBot

Members: 0
Guests: 13
Stats
Files
Topics
Posts
Members
Newest Member
481
3,739
19,386
626
UnaMcGlinn
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » Smaug Snippets » Using Samsons Stat Roller
Forum Rules | Mark all | Recent Posts

Using Samsons Stat Roller
< Newer Topic :: Older Topic > 'log_buf' undeclared

Pages:<< prev 1 next >>
Post is unread #1 Aug 3, 2006, 3:23 am
Go to the top of the page
Go to the bottom of the page

Burden

GroupMembers
Posts1
JoinedAug 3, 2006

If this isn't the correct forum please move.

I've fixed most of my problems with it, but I can't for the life of me figure out my its giving me this when I try to make.

Compiling o/comm.o....
comm.c: In function 'check_playing':
comm.c:2702: error: 'log_buf' undeclared (first time use in this function)
comm.c:2702: error: (Each undeclared identifier is reported only once
comm.c:2702: error: for each function appears in.)
make[1]: *** [o/comm.c] Error 1
make: *** [all] Error 2
       
Post is unread #2 Aug 4, 2006, 8:47 pm
Go to the top of the page
Go to the bottom of the page

Conner
Sorcerer
GroupMembers
Posts870
JoinedMay 8, 2005

This was already addressed on the SmaugFUSS forums.
       
Post is unread #3 Aug 5, 2006, 10:49 am
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,643
JoinedJan 1, 2002

It would be more appropriate to discuss here though since it's one of our snippets. :)

The problem comes from this part of the snippet instructions:

Find function check_playing, and locate the following lines of code:

if ( !ch->name
|| ( cstate != CON_PLAYING && cstate != CON_EDITING ))
{
write_to_buffer( d, "Already connected - try again.\r\n", 0 );
sprintf( log_buf, "%s already connected.",
ch->pcdata->filename );
log_string_plus( log_buf, LOG_COMM, sysdata.log_level );
return BERR;
}

Change those lines to read:

if ( !ch->name
|| ( cstate != CON_PLAYING && cstate != CON_EDITING && cstate != CON_ROLL_STATS ))
{
char lbuf[MAX_STRING_LENGTH];

write_to_buffer( d, "Already connected - try again.\r\n", 0 );
snprintf( lbuf, MAX_STRING_LENGTH, "%s already connected.", ch->pcdata->filename );
log_string_plus( lbuf, LOG_COMM, sysdata.log_level );
return BERR;
}


I've changed it to what it should read now since FUSS did away with the log_buf global variable a long time ago. I have no doubt that other snippets may have this same problem.
       
Pages:<< prev 1 next >>