I'm quite new to SMAUG programming and I would like to know how to comment things out in the code? I'm trying to add custom slay messages and it says to comment out do_slay in fight.c, how do I do that? I've tried all sorts of ways but everything gives me errors when I re compile.
Here is the errors I am getting:
fight.c
fight.c:4435: syntax error before '{' token
fight.c:4440: warning: type defaults to `int' in declaration of `argument'
fight.c:4440: `arg' undeclared here (not in a function)
fight.c:4440: warning: passing arg 1 of `one_argument' from incompatible pointer type
fight.c:4440: warning: initialization from incompatible pointer type
fight.c:4440: initializer element is not constant
fight.c:4440: warning: data definition has no type or storage class
fight.c:4441: warning: type defaults to `int' in declaration of `one_argument'
fight.c:4441: warning: parameter names (without types) in function declaration
fight.c:4441: conflicting types for `one_argument'
mud.h:5454: previous declaration of `one_argument'
fight.c:4441: warning: data definition has no type or storage class
fight.c:4442: syntax error before "if"
fight.c:4469: syntax error before string constant
fight.c:4470: syntax error before string constant
fight.c:4476: syntax error before numeric constant
fight.c:4477: syntax error before numeric constant
fight.c:4483: syntax error before string constant
fight.c:4484: syntax error before string constant
fight.c:4485: syntax error before string constant
fight.c:4486: syntax error before string constant
fight.c:4487: syntax error before string constant
fight.c:4493: syntax error before numeric constant
fight.c:4494: syntax error before numeric constant
fight.c:4500: syntax error before numeric constant
fight.c:4501: syntax error before numeric constant
fight.c:4507: syntax error before numeric constant
fight.c:4508: syntax error before numeric constant
fight.c:4514: syntax error before string constant
fight.c:4515: syntax error before string constant
fight.c:4518: warning: type defaults to `int' in declaration of `set_cur_char'
fight.c:4518: warning: parameter names (without types) in function declaration
fight.c:4518: conflicting types for `set_cur_char'
mud.h:5416: previous declaration of `set_cur_char'
fight.c:4518: warning: data definition has no type or storage class
fight.c:4519: warning: type defaults to `int' in declaration of `raw_kill'
fight.c:4519: warning: parameter names (without types) in function declaration
fight.c:4519: conflicting types for `raw_kill'
fight.c:3557: previous declaration of `raw_kill'
fight.c:4519: warning: data definition has no type or storage class
fight.c:4520: syntax error before "return"
make[1]: *** [fight.o] Error 1
make[1]: Leaving directory `/home/m049kev/smaug1.8/src'
make: *** [all] Error 2
Can someone explain what I'm doing wrong?
Here is the errors I am getting:
fight.c
fight.c:4435: syntax error before '{' token
fight.c:4440: warning: type defaults to `int' in declaration of `argument'
fight.c:4440: `arg' undeclared here (not in a function)
fight.c:4440: warning: passing arg 1 of `one_argument' from incompatible pointer type
fight.c:4440: warning: initialization from incompatible pointer type
fight.c:4440: initializer element is not constant
fight.c:4440: warning: data definition has no type or storage class
fight.c:4441: warning: type defaults to `int' in declaration of `one_argument'
fight.c:4441: warning: parameter names (without types) in function declaration
fight.c:4441: conflicting types for `one_argument'
mud.h:5454: previous declaration of `one_argument'
fight.c:4441: warning: data definition has no type or storage class
fight.c:4442: syntax error before "if"
fight.c:4469: syntax error before string constant
fight.c:4470: syntax error before string constant
fight.c:4476: syntax error before numeric constant
fight.c:4477: syntax error before numeric constant
fight.c:4483: syntax error before string constant
fight.c:4484: syntax error before string constant
fight.c:4485: syntax error before string constant
fight.c:4486: syntax error before string constant
fight.c:4487: syntax error before string constant
fight.c:4493: syntax error before numeric constant
fight.c:4494: syntax error before numeric constant
fight.c:4500: syntax error before numeric constant
fight.c:4501: syntax error before numeric constant
fight.c:4507: syntax error before numeric constant
fight.c:4508: syntax error before numeric constant
fight.c:4514: syntax error before string constant
fight.c:4515: syntax error before string constant
fight.c:4518: warning: type defaults to `int' in declaration of `set_cur_char'
fight.c:4518: warning: parameter names (without types) in function declaration
fight.c:4518: conflicting types for `set_cur_char'
mud.h:5416: previous declaration of `set_cur_char'
fight.c:4518: warning: data definition has no type or storage class
fight.c:4519: warning: type defaults to `int' in declaration of `raw_kill'
fight.c:4519: warning: parameter names (without types) in function declaration
fight.c:4519: conflicting types for `raw_kill'
fight.c:3557: previous declaration of `raw_kill'
fight.c:4519: warning: data definition has no type or storage class
fight.c:4520: syntax error before "return"
make[1]: *** [fight.o] Error 1
make[1]: Leaving directory `/home/m049kev/smaug1.8/src'
make: *** [all] Error 2
Can someone explain what I'm doing wrong?