Raised This Month: $ Target: $400
 0% 

Lang Files with plugin_init?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 02-19-2006 , 19:28   Lang Files with plugin_init?
Reply With Quote #1

Code:
register_dictionary("GHW_CTF.txt") new pluginname[32] format(pluginname,31,"GHW - %L",LANG_SERVER,"PLUGIN_NAME") register_plugin(pluginname,"1.0","GHW_Chronic")

Can you use format with language files in plugin_init with register_plugin / concmd / clcmd / cvar?
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 02-19-2006 , 19:33  
Reply With Quote #2

I'm pretty sure you can. Why not try it yourself though?
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
BAILOPAN
Join Date: Jan 2004
Old 02-19-2006 , 19:35  
Reply With Quote #3

yes.

just be careful as if you do plugin searches by name it will be different.
__________________
egg
BAILOPAN is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 02-19-2006 , 20:17  
Reply With Quote #4

I was getting an error on it, but I realized I had a %s in the lang file and nothing to fill it with in the script. Works fine now.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Dancing Bread
BANNED
Join Date: Aug 2006
Location: 714 cuz
Old 09-01-2006 , 11:35   Re: Lang Files with plugin_init?
Reply With Quote #5

ok I want to use the %L thing in my script . but it crashes . what is the LANG_SERVER paramater he used there ? do oyu need that ? can some one tell me everything you need to do to use a lang file like he did ?
thanks
Dancing Bread is offline
Old 09-02-2006, 04:52
VEN
This message has been deleted by VEN. Reason: i'll better paste a link :/
VEN
Veteran Member
Join Date: Jan 2005
Old 09-02-2006 , 04:56   Re: Lang Files with plugin_init?
Reply With Quote #6

All info is here, please read carefully: http://wiki.amxmodx.org/index.php/Ad...ingual_Support
VEN is offline
Dancing Bread
BANNED
Join Date: Aug 2006
Location: 714 cuz
Old 09-02-2006 , 06:26   Re: Lang Files with plugin_init?
Reply With Quote #7

sweet thanks agan VEN! +karma!
Dancing Bread 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 20:19.


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