bonus = xp;(thats line 2454)
sprintf (buf, "`!You receive `^%d`! experience due to double experience``\n\r", bonus );
int bonus;
char buf[MAX_STRING_LENGTH];
char buf[MAX_STRING_LENGTH];in there and it compiled just fine, I knew I was missing something just wasnt quite sure what it was
fight.c: In function xp_compute:
fight.c:2454: error: bonus undeclared (first use in this function)
fight.c:2454: error: (Each undeclared identifier is reported only once
fight.c:2454: error: for each function it appears in.)
fight.c:2458: error: buf undeclared (first use in this function)
fight.c:2459: error: expected ) before ; token
fight.c:2460: error: invalid use of void expression
fight.c:2460: error: expected ; before } token
make: *** [fight.o] Error 1
Here are the lines of code its happening in:
any ideas? Oh and before you ask, my color code uses ` instead of { that was something converted a long time ago. And has no bearing on what i'm putting in.