Ask coding questions

← Back to all posts
Cant fix this c++ error
Porkwalker (0)

PLs coment if you can help

Comments
hotnewtop
InvisibleOne (3224)

I'm not sure exactly what you are trying to do, but you can't just put a number and then a variable, is that supposed to be:

if (attackRoll >= 3)

or

if (attackRoll >= p2Def)

or

if (attackRoll >= (3*p2Def))

Or am I completely wrong and it's something else?