Register forum user name Search FAQ

Gammon Forum

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 ➜ SMAUG coding ➜ code prolem

code prolem

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Gorock   (149 posts)  Bio
Date Tue 25 Oct 2005 08:50 PM (UTC)
Message
ok i added the patch file and everything should work i looked over everything that would create this compile error but i cant figure it out i think i have to add a call or something but i am not too good at it and im clueless as how to fix this

act_info.c: In function `show_char_to_char_0':
act_info.c:829: warning: unused variable `kwd'
act_info.c: In function `do_look':
act_info.c:1140: error: `kwd' undeclared (first use in this function)
act_info.c:1140: error: (Each undeclared identifier is reported only once
act_info.c:1140: error: for each function it appears in.)
make[1]: *** [o/act_info.o] Error 1
make: *** [all] Error 2


any help is greatly appreciated
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #1 on Tue 25 Oct 2005 08:52 PM (UTC)
Message
Looks like that variable declaration 'kwd' was put in the wrong place. Move it to do_look.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Gorock   (149 posts)  Bio
Date Reply #2 on Tue 25 Oct 2005 09:11 PM (UTC)
Message
ok got that working now i get this i fixed about 30 errors allready but dunno what to do about this one

fight.c: In function `check_killer':
fight.c:2701: error: parse error before "else"
fight.c:2735: error: parse error before "else"

those lines are these starting at line 2698

else if( victim->level < 30 )
adjust_hiscore( "pkill", ch, ch->pcdata->pkills ); /* cronel hiscore $
ch->pcdata->clan->pkills[3]++;
problem ---> else if( victim->level < 40 )
ch->pcdata->clan->pkills[4]++;
else if( victim->level < 50 )


next starts at line 2733

victim->pcdata->clan->pdeaths[5]++;
adjust_hiscore( "pkill", ch, ch->pcdata->pkills ); /* cronel hiscore $
else
victim->pcdata->clan->pdeaths[6]++;
}
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #3 on Tue 25 Oct 2005 09:19 PM (UTC)
Message
Looks like you're missing a set of brackets after the 'victim->level < 30' ifcheck.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Gorock   (149 posts)  Bio
Date Reply #4 on Tue 25 Oct 2005 09:31 PM (UTC)
Message
yeah i was missing brackets around both checks thanks
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.


18,226 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.