I was certain I had asked this before but I couldn't find it from search.
How do you read a (line break) \n in a convar?
The line break is not treated as a line break when the message is printed to the client.
Code:
Server.cfg -> convar_message "Hi. \nThis is my line break."
ConVar hintMsg;
public void OnPluginStart()
{
hintMsg = CreateConVar("convar_message", "", "Hint message");
}
void PrintMessage(int client)
{
char buffer[256];
hintMsg.GetString(buffer, sizeof(buffer));
if (!strlen(buffer)) return;
PrintHintText(client, buffer);
}