Raised This Month: $ Target: $400
 0% 

Translation phrase not found only in player loop


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Azzod
Junior Member
Join Date: Nov 2016
Location: France
Old 06-22-2021 , 07:24   Translation phrase not found only in player loop
Reply With Quote #1

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
__________________
French CSGO fun server : https://csacademie.fr

Last edited by Azzod; 06-22-2021 at 07:32.
Azzod is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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