It should beThe same for all the other places you have =+, they should be +=. All your =- should be -=. If attack = attack + amount doesn't work then there are probably other problems with your code that this won't fix.Code:attack += amount;
BTW, I guess I see why it compiles.is the same asCode:attack =+ amount;
which is the same asCode:attack = +amount;
Obviously that's not what you want.Code:attack = amount;