Probably I overlook something really trivial, but here goes:
The task is to display a text with a number. Ie “n apples”, where n should be a certain integer-20. In my code (Blender 2.57) this is:
text = str(carrier-20)+" apples"
settext.value = text
cont.activate(settext)
Where settext is a property actuator that sets the text displayed, carrier is the integer that should be displayed. When running, the text string becomes something like this:
[2 + [Extra characters after expression]]
(when carrier was 22 for example)
instead of
2 apples
I just cannot figure out what is going wrong. Any help, pretty please?