error adding integer to double [solved]
Gng
10 Oct 2024, 08:10Heyall
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
10 Oct 2024, 08:18Nevermind. There was a spelling mistake