Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
auth_update crash
Dec 23, 2017, 10:15 pm
By Remcon
check_tumble
Dec 18, 2017, 7:21 pm
By Remcon
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Yahoo!, DotBot, Bing

Members: 0
Guests: 5
Stats
Files
Topics
Posts
Members
Newest Member
478
3,708
19,242
612
Jacki72H
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,639
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 >>