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
➜ SMAUG
➜ Compiling the server
➜ Compiling FUSS 1.6 Weapon code compilation errors
|
Compiling FUSS 1.6 Weapon code compilation errors
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Dralnu
USA (277 posts) Bio
|
| Date
| Thu 08 Sep 2005 06:38 PM (UTC) |
| Message
| make -s smaug
Compiling o/skills.o....
skills.c: In function `ranged_got_target':
skills.c:4767: error: parameter `wtype' is initialized
skills.c:4767: error: parm types given both in parmlist and separately
skills.c:4848: error: `wtype' undeclared (first use in this function)
skills.c:4848: error: (Each undeclared identifier is reported only once
skills.c:4848: error: for each function it appears in.)
make[1]: *** [o/skills.o] Error 1
make: *** [all] Error 2
OK, this is Samson's Weapons code. I don't see where to declare wtype for ranged_got_target. I did what the directions said to, but seem to be lacking a declaration. Where am I missing this declare? I don't see anything for it in mud.h (I'll try moving part of the code there to see how that works, but I don't think that will work). | | Top |
|
| Posted by
| Dralnu
USA (277 posts) Bio
|
| Date
| Reply #1 on Thu 08 Sep 2005 06:44 PM (UTC) |
| Message
| | moved the declare to mud.h, and it didn't help (I added the code directly to the section after /*skills.c*/), Where else would it need to be declared? | | Top |
|
| Posted by
| David Haley
USA (3,881 posts) Bio
|
| Date
| Reply #2 on Thu 08 Sep 2005 06:47 PM (UTC) |
| Message
| | What does the prototype for ranged_got_target look like in skills.c? |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | | Top |
|
| Posted by
| Zeno
USA (2,871 posts) Bio
|
| Date
| Reply #3 on Thu 08 Sep 2005 06:57 PM (UTC) |
| Message
| Hmm. I have the new system on my MUD and it's fine. It's in archery.c for me. I have this:
ch_ret ranged_got_target( CHAR_DATA * ch, CHAR_DATA * victim, OBJ_DATA * weapon, OBJ_DATA * projectile, short dist, short dt,
char *stxt, short color )
{
/*
* added wtype for check to determine skill used for ranged attacks - Grimm
*/
short wtype = 0;
|
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | | Top |
|
| Posted by
| Dralnu
USA (277 posts) Bio
|
| Date
| Reply #4 on Thu 08 Sep 2005 07:16 PM (UTC) |
| Message
| /*
* Perform the actual attack on a victim -Thoric
*/
ch_ret ranged_got_target( CHAR_DATA * ch, CHAR_DATA * victim, OBJ_DATA * weapon,
OBJ_DATA * projectile, short dist, short dt, char *stxt, short color )
/* added wtype for check to determine skill used for ranged attacks - Grimm */
short wtype = 0;
{
that is the code from the start of it. That what you needed? | | Top |
|
| Posted by
| Zeno
USA (2,871 posts) Bio
|
| Date
| Reply #5 on Thu 08 Sep 2005 07:17 PM (UTC) |
| Message
| | That's your problem. wtype is before the opening bracket. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | | Top |
|
| Posted by
| David Haley
USA (3,881 posts) Bio
|
| Date
| Reply #6 on Thu 08 Sep 2005 07:17 PM (UTC) |
| Message
| Well, there you go... look at where the 'short' is and look at where the { is...
EDIT: Heh, beat me to it by a few seconds! :-) |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | | Top |
|
| Posted by
| Dralnu
USA (277 posts) Bio
|
| Date
| Reply #7 on Thu 08 Sep 2005 07:17 PM (UTC) Amended on Thu 08 Sep 2005 07:18 PM (UTC) by Dralnu
|
| Message
| lol. Fixed it. Looking at Zeno's bit, the { was in the wrong location. Changed it and it went up fine. I hate parenthese/brackets...
If only I had a dollar
I changed it before both of you posted, oddly enough. LOL | | 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.
28,101 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top