error adding integer to double [solved]

Gng

Heyall

So I have this code:

player.correct = player.correct + 1

player.correct is set to double in attributes tab.
It gives an error:
Error running script: Error compiling expression 'player.correct + 1': ArithmeticElement: Operation 'Add' is not defined for types 'Object' and 'Int32'


Gng

Nevermind. There was a spelling mistake


Log in to post a reply.

Support

Forums