Raised This Month: $ Target: $400
 0% 

Creating a script with data/lang


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
mateo10
Veteran Member
Join Date: Jan 2006
Old 05-01-2007 , 11:17   Re: Creating a script with data/lang
Reply With Quote #2

If we assume you have a dictionary file called "dictionary.txt" in amxmodx/data/lang folder, and you have this line in it.
Code:
TEST = Test
First, you'll have to register the dictionary in plugin_init:
Code:
register_dictionary("dictionary.txt")

Then, use it in a way like this:
Code:
client_print(id, print_chat, "%L", id, "TEST")
You gotta have the "id" there because you want to use the id's language.

This will print out "Test" in chat.

Last edited by mateo10; 05-01-2007 at 11:26.
mateo10 is offline
 



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 06:34.


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