|
Having some troubles with a potentially simple problem
|
Reply to this subject
Start a new subject
 
Refresh page
| Posted by |
XxZaynexX
USA (2 posts) bio
|
| Date |
Mon 04 Sep 2006 09:06 AM (UTC) [ quote
] |
| Message |
Added in a straight foreward snippet. i am using a customized SWR1Fuss. and I have followed all the directions but this bit of code still wont compile The Code first, then we'll show the errors.
if ( !IS_NPC(victim) && victim->level > ch->level )
{
send_to_char( "You cannot slay someone who is above your level.\n\r", ch );
return;
}
Okay thats whats showing the error in the compile log, and now... for the compile log....
~/SWR1FUSS/src$ make
/usr/bin/make -s swreality
Compiling o/imc.o....
Compiling o/i3.o....
Compiling o/act_comm.o....
Compiling o/act_info.o....
Compiling o/act_move.o....
Compiling o/act_obj.o....
Compiling o/act_wiz.o....
Compiling o/alias.o....
Compiling o/asteroids.o....
act_move.c: In function `generate_exit':
act_move.c:603: warning: use of cast expressions as lvalues is deprecated
Compiling o/boards.o....
Compiling o/bounty.o....
Compiling o/build.o....
Compiling o/clans.o....
Compiling o/changes.o....
Compiling o/color.o....
Compiling o/comm.o....
changes.c: In function `current_date':
changes.c:76: warning: `%x' yields only last 2 digits of year in some locales
Compiling o/comments.o....
act_wiz.c: In function `do_nohelps':
act_wiz.c:6122: warning: implicit declaration of function `get_help'
Compiling o/const.o....
Compiling o/councils.o....
Compiling o/copyover.o....
Compiling o/db.o....
Compiling o/fight.o....
Compiling o/functions.o....
Compiling o/handler.o....
Compiling o/hashstr.o....
Compiling o/id.o....
Compiling o/interp.o....
Compiling o/md5.o....
Compiling o/magic.o....
Compiling o/makeobjs.o....
Compiling o/misc.o....
Compiling o/mud_comm.o....
Compiling o/mud_prog.o....
Compiling o/pfiles.o....
Compiling o/player.o....
Compiling o/quest.o....
Compiling o/reset.o....
Compiling o/save.o....
Compiling o/shops.o....
Compiling o/skills.o....
Compiling o/slay.o....
quest.c: In function `generate_mob_quest':
quest.c:696: warning: `victim' might be used uninitialized in this function
quest.c: In function `generate_object_quest':
quest.c:795: warning: `victim' might be used uninitialized in this function
Compiling o/special.o....
Compiling o/tables.o....
slay.c: In function `do_slay':
slay.c:286: error: structure has no member named `level'
slay.c:286: error: structure has no member named `level'
Compiling o/track.o....
Compiling o/update.o....
Compiling o/space.o....
Compiling o/swskills.o....
o/db.o(.text+0x2089): In function `boot_db':
/tmp/db.c:713: undefined reference to `load_slays'
o/tables.o(.text+0x177d): In function `skill_function':
/tmp/tables.c:265: undefined reference to `do_destroyslay'
o/tables.o(.text+0x25ae):/tmp/tables.c:405: undefined reference to `do_makeslay'
o/tables.o(.text+0x3a96):/tmp/tables.c:598: undefined reference to `do_setslay'
o/tables.o(.text+0x3c1c):/tmp/tables.c:611: undefined reference to `do_showslay'
o/tables.o(.text+0x3cee):/tmp/tables.c:618: undefined reference to `do_slay'
o/tables.o(.text+0x68f0): In function `skill_name':
/tmp/tables.c:1254: undefined reference to `do_slay'
collect2: ld returned 1 exit status
swreality: No such file or directory
swreality: No such file or directory
Done compiling mud.
chmod: cannot access `swreality': No such file or directory
make[1]: *** [swreality] Error 1
make: *** [all] Error 2
Can anyone tell me whats up with this. I am still a fairly novice coder... and this is makign me want to sniffle adn snivel | top |
|
| Posted by |
XxZaynexX
USA (2 posts) bio
|
| Date |
Reply #1 on Mon 04 Sep 2006 11:43 AM (UTC) [ quote
] |
| Message |
found the answer for all of you who may have this issue at some point
reference the code above, and here
&& victim->top_level > ch->top_level | 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.
973 views.
Reply to this subject
Start a new subject
 
Refresh page
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )