powerlevel

Posted by Jinru on Sat 13 Mar 2004 06:12 AM — 2 posts, 10,944 views.

USA #0
k now i get these errors

fight.c:4261: parse error before "if"
fight.c:4288: warning: type defaults to `int' in declaration of `xp_gain'
fight.c:4288: `dam' undeclared here (not in a function)
fight.c:4288: parse error before "pow"
fight.c:4319: warning: type defaults to `int' in declaration of `pl_exp'
fight.c:4319: `ch' undeclared here (not in a function)
fight.c:4319: `ch' undeclared here (not in a function)
fight.c:4319: warning: data definition has no type or storage class
fight.c:4320: warning: type defaults to `int' in declaration of `xp_gain'
fight.c:4320: redefinition of `xp_gain'
fight.c:4288: `xp_gain' previously defined here
fight.c:4320: initializer element is not constant
fight.c:4320: warning: data definition has no type or storage class
fight.c:4321: parse error before '}' token
fight.c:4331: warning: type defaults to `int' in declaration of `xp_gain_post'
fight.c:4331: `ch' undeclared here (not in a function)
fight.c:4331: warning: data definition has no type or storage class
fight.c:4342: warning: type defaults to `int' in declaration of `gain_exp'
fight.c:4342: warning: parameter names (without types) in function declaration
fight.c:4342: conflicting types for `gain_exp'
mud.h:5125: previous declaration of `gain_exp'
fight.c:4342: warning: data definition has no type or storage class
fight.c:4344: parse error before '&&' token
fight.c:4352: warning: type defaults to `int' in declaration of `gain_exp'
fight.c:4352: warning: parameter names (without types) in function declaration
fight.c:4352: warning: data definition has no type or storage class
make[1]: *** [o/fight.o] Error 1
make: *** [all] Error 2
Australia Forum Administrator #1
Hard to say. I know we ask you to post the error message, but an error message without the code that causes it is almost as bad as code without the error message.

My guess from "`dam' undeclared here (not in a function)" is that you have a brace out of place.