24.11.2009, 21:09
I've heard of it somewhere, but I've never heard about it being used in this way.
I have a string, for example:
I want to print this in chat, but since \n doesn't work there I probably need a function(?) to fix this issue.
What I want is this result:
In the text chat.
The reason I have it in a string is because I'm using it for a dialog, I just want to be able to print it in text too.
I have a string, for example:
Код:
format(string, sizeof(string), "Hello, %s\n\nYou are really old.\n%s\n\nYeah that's right!", name, something);
What I want is this result:
Quote:
Hello Lenny You are really old Something Yeah that's right! |
The reason I have it in a string is because I'm using it for a dialog, I just want to be able to print it in text too.