Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
Development
Nov 28, 2018, 10:10 am
By Keirath
First Immortal
Oct 12, 2018, 12:02 pm
By GatewaySysop
Bug in do_climb( )
Jun 5, 2018, 5:31 pm
By joeyfogas
question on overland code
May 31, 2018, 10:03 am
By joeyfogas
KaVir's Protocol Snip
May 15, 2018, 7:57 pm
By joeyfogas
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, Sogou

Members: 0
Guests: 18
Stats
Files
Topics
Posts
Members
Newest Member
481
3,740
19,397
633
Rhyader
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » Smaug Snippets » Dualclass.c
Forum Rules | Mark all | Recent Posts

Dualclass.c
< Newer Topic :: Older Topic > prob with the dualclass snippet

Pages:<< prev 1 next >>
Post is unread #1 Jan 1, 2004, 8:56 pm
Go to the top of the page
Go to the bottom of the page

tristan

GroupMembers
Posts1
JoinedJan 1, 2004

Hello, I was adding in the dual class snippet, after compiling I got the following errors:

Compiling o/dualclass.o....
dualclass.c:10: `CHAR_DATA' was not declared in this scope
dualclass.c:10: `ch' was not declared in this scope
dualclass.c:10: parse error before `)' token
dualclass.c: In function `bool DUAL_SKILL(...)':
dualclass.c:13: `skill_table' undeclared (first use this function)
dualclass.c:13: (Each undeclared identifier is reported only once for each
function it appears in.)
dualclass.c:13: `sn' undeclared (first use this function)
dualclass.c:13: `SKILL_RACIAL' undeclared (first use this function)
dualclass.c:15: `ch' undeclared (first use this function)
dualclass.c:17: `TRUE' undeclared (first use this function)
dualclass.c:20: `IS_DUAL' undeclared (first use this function)
dualclass.c:28: parse error before `&&' token
dualclass.c:32: `FALSE' undeclared (first use this function)
dualclass.c: At global scope:
dualclass.c:42: `CHAR_DATA' was not declared in this scope
dualclass.c:42: parse error before `)' token
dualclass.c: In function `int dual_adept(...)':
dualclass.c:49: parse error before `<=' token
dualclass.c:55: `LEVEL_HERO' undeclared (first use this function)
dualclass.c: At global scope:
dualclass.c:68: `CHAR_DATA' was not declared in this scope
dualclass.c:68: parse error before `)' token
dualclass.c: In function `int find_skill_level(...)':
dualclass.c:70: parse error before `;' token
dualclass.c: At global scope:
dualclass.c:91: `CHAR_DATA' was not declared in this scope
dualclass.c:92: syntax error before `{' token
dualclass.c:102: `CHAR_DATA' was not declared in this scope
dualclass.c:103: syntax error before `{' token
dualclass.c:114: `CHAR_DATA' was not declared in this scope
dualclass.c:115: syntax error before `{' token
make[1]: *** [o/dualclass.o] Error 1
make: *** [all] Error 2

lol, so it might wanna be reviewed
       
Post is unread #2 Jan 1, 2004, 9:59 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,644
JoinedJan 1, 2002

The functions in dualclass.c aren't intended to stand on their own. Stick em in skills.c or something and I'm sure you'll get much better results from the compile.
       
Pages:<< prev 1 next >>