code prolem

Posted by Gorock on Tue 25 Oct 2005 08:50 PM — 5 posts, 19,197 views.

#0
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
USA #1
Looks like that variable declaration 'kwd' was put in the wrong place. Move it to do_look.
#2
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]++;
}
USA #3
Looks like you're missing a set of brackets after the 'victim->level < 30' ifcheck.
#4
yeah i was missing brackets around both checks thanks