24.02.2018, 10:33
That's usually how it's done:
You pass the actual string to the format function and add whatever you need.
PHP Code:
new message[24], value = 5;
strcat(string, "hello");
format(string, sizeof string, "%s world! %i", string, value);