There's many ways ^.^
1, is to use the set text command (without coding) 2 is coding You can use t he following :3
- Code: Select all
sprintf(text, "Text here");
In sprintf you can also call the ammounts of variables by doing this
- Code: Select all
sprintf(text, "Hello %d %s %i", x, text_variable, integer);
Replace x, text_var, and integer with the names of the variables your using. %d calls uh... just like %i really, it gives you the value of the variable.
%s gives you the value of a text variable so if you hav e your player customizable name, %s will call his name after the word "Hello" according to the sprintf command
The other commands you can use are:
strcpy is used just like sprintf, but I'm not sure if strcpy can use the %d, s, and i and stuff like that.
strcat appends text to the current text you already have. For example if your text says "Hello", use
- Code: Select all
strcat(text, "My name is bob");
And then it'll say "Hello my name is bob".
Hope this helped