Raised This Month: $32 Target: $400
 8% 

Translation phrase not found only in player loop


Post New Thread Reply   
 
Thread Tools Display Modes
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
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 06-22-2021 , 10:41   Re: Translation phrase not found only in player loop
Reply With Quote #2

You should be asking in source mod section. This one is for amx mod x.
https://forums.alliedmods.net/forumdisplay.php?f=52
__________________








CrazY. is offline
Azzod
Junior Member
Join Date: Nov 2016
Location: France
Old 06-22-2021 , 10:50   Re: Translation phrase not found only in player loop
Reply With Quote #3

Damn ... sorry
__________________
French CSGO fun server : https://csacademie.fr
Azzod is offline
kww
Senior Member
Join Date: Feb 2021
Location: Russia
Old 06-23-2021 , 08:38   Re: Translation phrase not found only in player loop
Reply With Quote #4

and then delete this topic, ok?

Last edited by kww; 06-23-2021 at 08:39.
kww is offline
Reply


Thread Tools
Display Modes

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 00:33.


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