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

probleme with variable


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
darkpavel
Junior Member
Join Date: Aug 2010
Old 05-02-2012 , 08:11   probleme with variable
Reply With Quote #1

hello i have a big problem with variable went i want to kick someone or ban i have this text Le joueur \"{1}\" a été banni pour {2} minutes. (raison: {3}). or this {1} a choisi {2} for the vote how do you fix that
darkpavel is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 05-02-2012 , 13:52   Re: probleme with variable
Reply With Quote #2

ok... could you tell MM:s and SM version.
rcon meta version
rcon sm version


What you have inside ...\addons\sourcemod\configs\languages.cfg ?

What you have on these ...\addons\sourcemod\configs\core.cfg ?
Code:
	/**
	 * Language that multilingual enabled plugins and extensions will use to print messages.
	 * Only languages listed in languages.cfg are valid.
	 *
	 * The default value is "en"
	 */
	"ServerLang"	"en"

	/**
	 * Enables or disables whether SourceMod reads a client's cl_language cvar to set 
	 * their language for server-side phrase translation.
	 *
	 * "on"		- Translate using the client's language (default)
	 * "off"	- Translate using default server's language
	 */
	"AllowClLanguageVar"		"On"

And I want check also your files:
...addons\sourcemod\translations\plugin.basec ommands.txt
...addons\sourcemod\translations\fr\plugin.basecommands.txt

If you could give these two *.txt files from your server and attach in here forum post. (Go Advance)
Or zip files separatelly somewhere where can pick.
Bacardi is offline
darkpavel
Junior Member
Join Date: Aug 2010
Old 05-02-2012 , 16:51   Re: probleme with variable
Reply With Quote #3

Thank you for your fast reply . here is the information

Metamod:Source version 1.8.7
Build ID: 772:99b7a0a11fec
Loaded As: Valve Server Plugin
Compiled on: Jun 23 2011
Plugin interface version: 15:14
SourceHook version: 5:5
http://www.metamodsource.net/

SourceMod Version Information:
SourceMod Version: 1.4.0
SourcePawn Engine: SourcePawn 1.1, jit-x86 (build 1.4.0)
SourcePawn API: v1 = 4, v2 = 3
Compiled on: Oct 28 2011 18:00:59
Build ID: 3425:ddd707c3454c
http://www.sourcemod.net/

addons\sourcemod\configs\core.cfg
Quote:
/**
* This file is used to set various options that are important to SourceMod's core.
* If this file is missing or an option in this file is missing, then the default values will be used.
*/
"Core"
{
/**
* This option determines if SourceMod logging is enabled.
*
* "on" - Logging is enabled (default)
* "off" - Logging is disabled
*/
"Logging" "on"

/**
* This option determines how SourceMod logging should be handled.
*
* "daily" - New log file is created for each day (default)
* "map" - New log file is created for each map change
* "game" - Use game's log files
*/
"LogMode" "daily"

/**
* Language that multilingual enabled plugins and extensions will use to print messages.
* Only languages listed in languages.cfg are valid.
*
* The default value is "en"
*/
"ServerLang" "fr"

/**
* String to use as the public chat trigger. Set an empty string to disable.
*/
"PublicChatTrigger" "!"

/**
* String to use as the silent chat trigger. Set an empty string to disable.
*/
"SilentChatTrigger" "/"

/**
* If a say command is a silent chat trigger, and is used by an admin,
* but it does not evaluate to an actual command, it will be displayed
* publicly. This setting allows you to suppress accidental typings.
*
* The default value is "no". A value of "yes" will supress.
*/
"SilentFailSuppress" "no"

/**
* Password setinfo key that clients must set. You must change this in order for
* passwords to work, for security reasons.
*/
"PassInfoVar" "_password"

/**
* Specifies the sound that gets played when an item is selected from a menu.
*/
"MenuItemSound" "buttons/button14.wav"

/**
* Specifies the sound that gets played when an "Exit" button is selected
* from a menu.
*/
"MenuExitSound" "buttons/combine_button7.wav"

/**
* Specifies the sound that gets played when an "Exit Back" button is selected
* from a menu. This is the special "Back" button that is intended to roll back
* to a previous menu.
*/
"MenuExitBackSound" "buttons/combine_button7.wav"

/**
* Enables or disables whether SourceMod reads a client's cl_language cvar to set
* their language for server-side phrase translation.
*
* "on" - Translate using the client's language (default)
* "off" - Translate using default server's language
*/
"AllowClLanguageVar" "On"

/**
* Enables or Disables SourceMod's automatic gamedata updating.
*
* The default value is "no". A value of "yes" will block the Auto Updater.
*/
"DisableAutoUpdate" "no"

/**
* If set to yes, a successful gamedata update will attempt to restart SourceMod.
* SourceMod is unloaded and reloaded, and the map is changed to the current map.
* Since gamedata updates occur when the server loads, impact should be minimal.
* But to be safe, this option is disabled by default.
*/
"ForceRestartAfterUpdate" "no"

/**
* URL to use for retrieving update information.
* SSL is not yet supported.
*/
"AutoUpdateURL" "http://update.sourcemod.net/update/"

/**
* Whether to show debug spew.
* Currently this will log details about the gamedata updating process.
*/
"DebugSpew" "no"
}
\addons\sourcemod\configs\languages.cfg

Quote:
"Languages"
{
"en" "English"
"l0l" "1337speak" // 1337speak
"ar" "Arabic" // Arabic
"pt" "Brazilian" // Brazilian Portuguese
"bg" "Bulgarian" // Bulgarian
"cze" "Czech" // Czech
"da" "Danish" // Danish
"nl" "Dutch" // Dutch
"fi" "Finnish" // Finnish
"fr" "French" // French
"de" "German" // German
"he" "Hebrew" // Hebrew
"hu" "Hungarian" // Hungarian
"it" "Italian" // Italian
"jp" "Japanese" // Japanese
"ko" "KoreanA" // Korean
"ko" "Korean" // Korean
"lv" "Latvian" // Latvian
"lt" "Lithuanian" // Lithuanian
"no" "Norwegian" // Norwegian
"pl" "Polish" // Polish
"ro" "Romanian" // Romanian
"ru" "Russian" // Russian
"chi" "SChinese" // Chinese (Simplified)
"sk" "Slovak" // Slovak
"es" "Spanish" // Spanish
"sv" "Swedish" // Swedish
"zho" "TChinese" // Chinese (Traditional)
"tr" "Turkish" // Turkish
}
Attached Files
File Type: zip translations.zip (1.6 KB, 37 views)
darkpavel is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 05-02-2012 , 17:26   Re: probleme with variable
Reply With Quote #4

Can I ask why, somehow, you have main translation file replaced with frech translation file ?

To fix, get translations folder from SourceMod pack and replace yours. Reboot server.

You can try force only french translations to everybody on server, core.cfg
Code:
"AllowClLanguageVar" "Off"
but if some plugins don't have it, it will use default english.
Bacardi is offline
darkpavel
Junior Member
Join Date: Aug 2010
Old 05-04-2012 , 05:45   Re: probleme with variable
Reply With Quote #5

i have update to sourcemod 1.4.2 and now all is ok thanks to you bacardi
darkpavel is offline
Reply



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 05:40.


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