code function:
- Code: Select all
sprintf(levelshowactor.text, "Level %i", levelnum);
Not much more to say, the paramaters explain everything about the function. It allows you to put variables into a string with the directives %i, %d, %s for integers, floating point values (fractions), and strings respectively. Just don't forget to add the variables as additional parameters in the right order after the string.