Raised This Month: $ Target: $400
 0% 

Dictionary


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zirualas
Senior Member
Join Date: Jun 2010
Location: Lithuania
Old 08-15-2010 , 13:27   Dictionary
Reply With Quote #1

I try use a dictionary. I register_dictionary("name.txt")
Then I put name.txt file in data/lang and what i need to type int .sma file to he's print my text.
My name.txt file
PHP Code:
[en]
NAME_GRAVITY = !g[Name]!t#s Buy a gravity 

Last edited by zirualas; 08-15-2010 at 13:39.
zirualas is offline
Send a message via Skype™ to zirualas
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-15-2010 , 13:33   Re: Dictionary
Reply With Quote #2

You have to use %L while formating your text.

Example :

- client_print( id, print_chat, "%L", id, "NAME_GRAVITY" );
- client_print( 0, print_chat, "%L", LANG_PLAYER, "NAME_GRAVITY" );

Use the player's index or if 0 ( for all players ), use LANG_PLAYER.
__________________
Arkshine is offline
zirualas
Senior Member
Join Date: Jun 2010
Location: Lithuania
Old 08-15-2010 , 13:36   Re: Dictionary
Reply With Quote #3

what's diffirence of this codes.
PHP Code:
client_printidprint_chat"%L"id"NAME_GRAVITY" );
client_print0print_chat"%L"LANG_PLAYER"NAME_GRAVITY" ); 
-EDIT-
But he's print me only orange text, I wanna colored text

Last edited by zirualas; 08-15-2010 at 13:40.
zirualas is offline
Send a message via Skype™ to zirualas
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-15-2010 , 14:14   Re: Dictionary
Reply With Quote #4

There is a tutorial. Please search.
__________________
Arkshine is offline
zirualas
Senior Member
Join Date: Jun 2010
Location: Lithuania
Old 08-16-2010 , 01:40   Re: Dictionary
Reply With Quote #5

I try to search this TUT, can't find it.
zirualas is offline
Send a message via Skype™ to zirualas
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 08-16-2010 , 05:19   Re: Dictionary
Reply With Quote #6

Quote:
Originally Posted by zirualas View Post
I try to search this TUT, can't find it.
If the search button isn't good for you try going in the thread of sniplets and tuts. There are only 11 pages. Just read the titles and you will find it.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
zirualas
Senior Member
Join Date: Jun 2010
Location: Lithuania
Old 08-16-2010 , 06:29   Re: Dictionary
Reply With Quote #7

I can't find it!
zirualas is offline
Send a message via Skype™ to zirualas
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-16-2010 , 06:36   Re: Dictionary
Reply With Quote #8

Tip : Color chat
__________________
Arkshine is offline
zirualas
Senior Member
Join Date: Jun 2010
Location: Lithuania
Old 08-16-2010 , 06:45   Re: Dictionary
Reply With Quote #9

ScreenShot, no tutorial...
Attached Thumbnails
Click image for larger version

Name:	be pavadinimo.jpg
Views:	193
Size:	91.3 KB
ID:	71730  
zirualas is offline
Send a message via Skype™ to zirualas
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-16-2010 , 06:49   Re: Dictionary
Reply With Quote #10

Quote:
ScreenShot, no tutorial...
It's what you need.
__________________
Arkshine is offline
Reply


Thread Tools
Display Modes

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 21:54.


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