changing the value of CCLabel

changing the value of CCLabel
0.0 0


hi I’m feeling pretty stupid right now all that I am trying to do is to create a label to display the score. I am creating a CCLabelTTF then when I go to update its string its wants a constant char. My score is stored as an integer and even if I make it into a char first it will not accept it as it is not constant.
So my question is how do set a label to an integer?



google about sprintf if you want


okay thanks I’ll give it a shot what is the “buffer32”?


hmm sorry my post was formated :slight_smile: it should be

buffer [ 32 ] <— simpla array of chars