is there a way to insert a variable into this code?
strcpy(actor.text, " INSERT_VARIABLE_HERE ");}
its not working because it turns the variable into text
strcpy(text, (char *)YourStringVar);
sprintf(text, "%s", YourStringVar);
sprintf(text, "A string: %s\nAn integer: %d\nA float value: %f", "Hello!", 7, 3.4);
stevenp wrote:i just edited my previous post, so its more specific mow
Users browsing this forum: No registered users and 1 guest