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, Yandex, Remcon

Members: 1
Guests: 3
Stats
Files
Topics
Posts
Members
Newest Member
481
3,735
19,369
618
Micheal64X
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » Smaug Snippets » New Auth Help
Forum Rules | Mark all | Recent Posts

New Auth Help
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 May 4, 2003, 9:32 pm
Go to the top of the page
Go to the bottom of the page

Dial

GroupMembers
Posts4
JoinedJan 6, 2003

Heya everyone,

When i went to compile the New Auth System i got these errors:

new_auth.c: In function `exists_player':
new_auth.c:63: `victim' undeclared (first use in this function)
new_auth.c:63: (Each undeclared identifier is reported only once
new_auth.c:63: for each function it appears in.)
new_auth.c: In function `fread_auth':
new_auth.c:147: warning: unused variable `buf'
make[1]: *** [new_auth.o] Error 1

Would anyone know how to fix these errors?
I use smaug1.4a

Thanks in advance
Dial
       
Post is unread #2 May 4, 2003, 10:19 pm
Go to the top of the page
Go to the bottom of the page

Eminorik

GroupMembers
Posts17
JoinedJan 30, 2003

well, without seeing your code or how you implemented it, I would take a stab at it by saying that you need to declare the variable 'victim' before the function can use it... somewhere before line 63.
       
Post is unread #3 May 5, 2003, 7:47 pm
Go to the top of the page
Go to the bottom of the page

Xorith
The Null Value
GroupAFKMud Team
Posts254
JoinedFeb 23, 2003


new_auth.c: In function `fread_auth':
new_auth.c:147: warning: unused variable `buf'


This usually isn't anything major. The compiler is just telling you that you've declared a variable, and it was not used at all. BUT... This can be a sign that you may have left out a step in the snippet installation. The variable 'buf' is often used to store strings for a short time before being sent to the player or log... It also could mean that in the process of the installation you were suppose to remove some code and missed a few lines.


new_auth.c: In function `exists_player':
new_auth.c:63: `victim' undeclared (first use in this function)
new_auth.c:63: (Each undeclared identifier is reported only once
new_auth.c:63: for each function it appears in.)


Now this one is a little more tricky. As stated, without seeing code it's hard to tell. The very first thing I'd do is make sure that the variable 'victim' is declared at some point in the function 'exists_player'. Let it be in the arguments or in function itself. Either way, the line would look like this:

CHAR_DATA *victim;-- OR --void function_call( CHAR_DATA *victim, char *other_args )


Above all the first thing I'd do is retrace my steps through the installation read-me. It was installing Samson's snippets that taught me the most about C coding (This is true!), and I never found his instructions to lead me wrong. It was usually something I missed, forgot, or didn't do right.

ALSO... Very important...

Just to cover all the bases, retrace a few other steps back. If you're installing more than one snippet at a time, you could have stepped on your own toes. I do not recommend installing more than one snippet at a time to code. It's well worth the wait to compile, test, bugfix, and then move on. It also cuts down on the number of places you need to look to find your evil bug(s)

Hope this helps!
       
Pages:<< prev 1 next >>