AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [help] putting ML to plugin FAIL!!!! (https://forums.alliedmods.net/showthread.php?t=127350)

jc980 05-20-2010 01:41

[help] putting ML to plugin FAIL!!!!
 
can somebody can help me on my plugin????? i cant put a ML to it!

http://forums.alliedmods.net/showthread.php?t=126158

unnyquee 05-21-2010 09:23

Re: [help] putting ML to plugin FAIL!!!!
 
You'll have to add the following line into plugin_init()

PHP Code:

register_dictionary("Your-ML-FileName-Here.txt"); 

And after that, you would have to create / move your ML file in addons/amxmodx/data/lang :)

If you want to print a ML text to a client, you can do like:

PHP Code:

client_print(0print_chat"%L"LANG_SERVER"ML-MESSAGE-VARIABLE"message arguments); // for printing to all clients in server language

client_print(0print_chat"%L"LANG_PLAYER"ML-MESSAGE-VARIABLE",  message arguments); // for printing to all clients in their own language 

PHP Code:

client_print(iClientprint_chat"%L"iClient"ML-MESSAGE-VARIABLE",  message arguments); // for printing to a single target in his own language 



All times are GMT -4. The time now is 03:32.

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