AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Translation phrase not found only in player loop (https://forums.alliedmods.net/showthread.php?t=333149)

Azzod 06-22-2021 07:24

Translation phrase not found only in player loop
 
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

CrazY. 06-22-2021 10:41

Re: Translation phrase not found only in player loop
 
You should be asking in source mod section. This one is for amx mod x.
https://forums.alliedmods.net/forumdisplay.php?f=52

Azzod 06-22-2021 10:50

Re: Translation phrase not found only in player loop
 
Damn ... sorry

kww 06-23-2021 08:38

Re: Translation phrase not found only in player loop
 
and then delete this topic, ok?


All times are GMT -4. The time now is 02:39.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.