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
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