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


This topic is now closed. Topics are closed after 14 days of inactivity.

Support

Forums