AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Lang Files with plugin_init? (https://forums.alliedmods.net/showthread.php?t=24348)

GHW_Chronic 02-19-2006 19:28

Lang Files with plugin_init?
 
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?

Hawk552 02-19-2006 19:33

I'm pretty sure you can. Why not try it yourself though?

BAILOPAN 02-19-2006 19:35

yes.

just be careful as if you do plugin searches by name it will be different.

GHW_Chronic 02-19-2006 20:17

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.

Dancing Bread 09-01-2006 11:35

Re: Lang Files with plugin_init?
 
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 :|

VEN 09-02-2006 04:56

Re: Lang Files with plugin_init?
 
All info is here, please read carefully: http://wiki.amxmodx.org/index.php/Ad...ingual_Support

Dancing Bread 09-02-2006 06:26

Re: Lang Files with plugin_init?
 
sweet thanks agan VEN!:up: +karma!


All times are GMT -4. The time now is 20:19.

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