sprintf(string, "%d", var);
DarkParadox wrote:
- Code: Select all
sprintf(string, "%d", var);
if you need more of an explanation, I'd be happy to give it :3
sprintf(random.text, "%d", var);
skydereign wrote:This prints a formatted string. String would be the text of your actor. Let's say your text actor is named random. The "%d" converts an int into the string. Since the sprintf is asking for only one int, the variable , var, is put into the string.
- Code: Select all
sprintf(random.text, "%d", var);
sprintf(random.text, "%d, %d", var1, var2);
Users browsing this forum: No registered users and 1 guest