This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Lang_player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jingojang
Senior Member
Join Date: Feb 2010
Location: The Moon
Old 10-08-2012 , 17:55   Lang_player
Reply With Quote #1

LANG_PLAYER

Where is this ML coming from? Been trying to find out the source file but I can not find it.

Thanks.

jingojang is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 10-08-2012 , 18:23   Re: Lang_player
Reply With Quote #2

ML is in lang documents.

Usually the plugin's name.txt found in amxmodx/data/lang
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
jingojang
Senior Member
Join Date: Feb 2010
Location: The Moon
Old 10-08-2012 , 20:35   Re: Lang_player
Reply With Quote #3

Well, the plugin timeleft.amxx is using the LANG_PLAYER function, and this is how the lang document looks for that plugin:

PHP Code:
[en]
THE_TIME The time
TIME_LEFT 
Time Left
NO_T_LIMIT 
No Time Limit
MINUTE 
minute
MINUTES 
minutes
SECOND 
second
SECONDS 
seconds 
The plugin is not registering any file which is using LANG_PLAYER.
jingojang is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 10-08-2012 , 20:39   Re: Lang_player
Reply With Quote #4

LANG_PLAYER is not an ML Key, it is a constant that is used by the ML Backend System when you print a message to all users
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
jingojang
Senior Member
Join Date: Feb 2010
Location: The Moon
Old 10-09-2012 , 12:05   Re: Lang_player
Reply With Quote #5

Okay, because when I remove it; it prints in the chat ML_NOTFOUND. And I do not have any other multilangs in that paragraph.

As such:

PHP Code:
new ctime[64]
    
    
get_time("%m/%d/%Y - %H:%M:%S"ctime63)
    
ColorChat(0GREY"%L: %s"LANG_PLAYER"^4The Time^3:"ctime
Code from: timeleft.sma

Last edited by jingojang; 10-09-2012 at 12:05.
jingojang is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 10-09-2012 , 13:00   Re: Lang_player
Reply With Quote #6

What are you trying to do?
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
jingojang
Senior Member
Join Date: Feb 2010
Location: The Moon
Old 10-09-2012 , 16:18   Re: Lang_player
Reply With Quote #7

Quote:
Originally Posted by wickedd View Post
What are you trying to do?
I was just trying to change the color of the real plugins text, I do not know how to remove it properly.

Original code:

PHP Code:
new ctime[64]
    
    
get_time("%m/%d/%Y - %H:%M:%S"ctime63)
    
client_print(0print_chat"%L:   %s"LANG_PLAYER"THE_TIME"ctime
My Code:

PHP Code:
new ctime[64]
    
    
get_time("%m/%d/%Y - %H:%M:%S"ctime63)
    
ColorChat(0GREY"%L: %s"LANG_PLAYER"^4The Time^3:"ctime
jingojang is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 10-09-2012 , 17:43   Re: Lang_player
Reply With Quote #8

You need to save the timeleft.txt as "UTF-8 without BOM"
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
guipatinador
SourceMod Donner Party
Join Date: Oct 2009
Location: Poortugal
Old 10-09-2012 , 18:54   Re: Lang_player
Reply With Quote #9

http://forums.alliedmods.net/showpos...26&postcount=5
guipatinador is offline
jingojang
Senior Member
Join Date: Feb 2010
Location: The Moon
Old 10-09-2012 , 22:37   Re: Lang_player
Reply With Quote #10

Quote:
Originally Posted by guipatinador View Post
So it's NOT possible to - remove the code - rewrite it in another way - then compile it?

Quote:
Originally Posted by wickedd View Post
You need to save the timeleft.txt as "UTF-8 without BOM"
Can you explain how that would help?

Last edited by jingojang; 10-09-2012 at 22:38.
jingojang 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 14:55.


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