Hello, I'm having some issues getting colours to work in translation files.
I have these lines:
PHP Code:
Format(Buffer, sizeof(Buffer), "%t", "TradeChatLeft", g_Prefix, ClientName);
SendMessageTranslations(client, Buffer);
PHP Code:
stock SendMessageTranslations(client, const String:Message[512])
{
for(new i=1; i <= MaxClients; i++)
{
if(g_bClientIsTrading[i])
{
CPrintToChatEx(i, client, Message);
}
}
PrintToServer(Message);
}
But the output of this in chat is:
Code:
[Trade Chat] \x3Aurora [SuRƒ] \x4has joined the trade chat!
Translation File snippet:
Code:
"TradeChatLeft"
{
"#format" "{1:s},{2:s}"
"en" "{1}{teamcolor}{2}{green} has left the trade chat!"
}
There is another key which is similar to this and has the same issue. I would like to release this plugin publicly so I would very much like this to be the first one I release with translation capabilities (although there's only a few things that need translating at the moment).
There are no errors displayed and PrintToServer reveals this:
Code:
{default}[{green}Trade Chat{default}]{green} \x3Aurora [SuRƒ] \x4has left the trade chat!
So I believe that it's just an issue with how I am doing things with the translation file. This is my first plugin using translations so any help on this would be most appreciated!