Hello,
I have a problem with translations.
My plugin is like that :
Code:
public void OnPluginStart() {
// ...
LoadTranslations("csacademie.phrases");
}
public Action OnRate(int client, int args)
{
launchPanel(client);
}
startRate() {
int i;
for (i = 1; i <= MaxClients; i++) {
if (IsClientInGame(i)) {
launchPanel(i);
}
}
}
launchPanel(int client)
{
if (!IsClientInGame(client) || IsFakeClient(client)) {
return;
}
Menu menu = new Menu(MenuHandler);
menu.SetTitle("%T", "csgo_maprate.question", client);
}
The problem, is when I pass in the "startRate" function.
The loop fails after 5 or 6 times, and give me an error : "Exception reported: Language phrase "csgo_maprate.question" not found (arg 5)" (In the launchPanel function at menu.SetTitle)
The firsts players receive the panel menu. If I pass with the "OnRate" function, the panel working too.
Anyone have an idea what I'was wrong doing?
Passing with the Format function have the same result
__________________