Raised This Month: $51 Target: $400
 12% 

Rage SubModule: ColorChat


Post New Thread Reply   
 
Thread Tools Display Modes
naven
Veteran Member
Join Date: Jun 2008
Location: Poland, Cieszyn
Old 01-20-2013 , 08:27   Re: Rage SubModule: ColorChat
Reply With Quote #51

Quote:
Originally Posted by ZASTRELIS View Post
How it works with dictionary, is it same as client_print? example me plz...
Example
PHP Code:
init
    register_dictionary_colored
("surf_timer_colour.txt")//colorchat ml file
    
register_dictionary("surf_timer.txt")//normal ml file(hudmessage seems not to work well if you use it with register_dictionary_colored) 
Message
PHP Code:
client_print_color(0GREEN"%L"LANG_PLAYER"DONE_IN_PLACE",TAG,playername,identyfikator,endtime[id],calc_time(endtime[id]),poss[id]+1
surf_timer_colour.txt - DONE_IN_PLACE
PHP Code:
DONE_IN_PLACE = %%s!n:!g%!nhas finished the map in!%!nseconds(!g%s!n minutes) (!nposition: !g%d!n
__________________
naven.com.pl
"At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.
naven is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 01-20-2013 , 10:39   Re: Rage SubModule: ColorChat
Reply With Quote #52

Quote:
Originally Posted by naven View Post
Example
PHP Code:
//normal ml file(hudmessage seems not to work well if you use it with register_dictionary_colored) 
Really? Never tested it, what is wrong with it?
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-20-2013 , 13:31   Re: Rage SubModule: ColorChat
Reply With Quote #53

register_dictionary_colored send register_dictionary in first place, don't send it again AFTER having called it.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
naven
Veteran Member
Join Date: Jun 2008
Location: Poland, Cieszyn
Old 01-22-2013 , 03:46   Re: Rage SubModule: ColorChat
Reply With Quote #54

Quote:
Originally Posted by bibu View Post
Really? Never tested it, what is wrong with it?
It displays "^n" instead of going to a new line.

Quote:
register_dictionary_colored send register_dictionary in first place, don't send it again AFTER having called it.
Why? It seems to be working just fine now. (yes I tried that when i had problems with "^n" in hudmessage)
__________________
naven.com.pl
"At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.
naven is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 01-23-2013 , 12:59   Re: Rage SubModule: ColorChat
Reply With Quote #55

Quote:
Originally Posted by naven View Post
It displays "^n" instead of going to a new line.
Connor said in one of hes posts in this topic to try ^^n,
not sure it works but, it could be usefull to try it out ;)
__________________
Retired.

Last edited by Xalus; 01-23-2013 at 12:59.
Xalus is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-26-2013 , 17:23   Re: Rage SubModule: ColorChat
Reply With Quote #56

Quote:
Originally Posted by naven View Post
It displays "^n" instead of going to a new line.


Why? It seems to be working just fine now. (yes I tried that when i had problems with "^n" in hudmessage)
Could you try this please :

Edit .inc file :

Replace :
PHP Code:
            if( iKey != TransKey_Bad )
            {
                while( 
replace(szTranslationcharsmax(szTranslation), "!g""^4") ){}
                while( 
replace(szTranslationcharsmax(szTranslation), "!t""^3") ){}
                while( 
replace(szTranslationcharsmax(szTranslation), "!n""^1") ){}
                
AddTranslation(szLangiKeyszTranslation[2]);
            } 
with

PHP Code:
            if( iKey != TransKey_Bad )
            {
                
format(szTranslationcharsmax(szTranslation), "%s"szTranslation)
                while( 
replace(szTranslationcharsmax(szTranslation), "!g""^4") ){}
                while( 
replace(szTranslationcharsmax(szTranslation), "!t""^3") ){}
                while( 
replace(szTranslationcharsmax(szTranslation), "!n""^1") ){}
                
AddTranslation(szLangiKeyszTranslation[2]);
            } 
Then recompile a plugin and test.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
naven
Veteran Member
Join Date: Jun 2008
Location: Poland, Cieszyn
Old 02-02-2013 , 08:04   Re: Rage SubModule: ColorChat
Reply With Quote #57

Hudmessages are fine now. However !g, !n !t stopped working in ML file.
output is
Code:
[x] !nGracz:!g naven!n:!gSTEAM_0:0:19566813 !nskonczyl mape w!g 50.969955 !nsekund (!g0:50!n minut) (!g4!n miejsce
__________________
naven.com.pl
"At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.

Last edited by naven; 02-02-2013 at 08:05.
naven is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-02-2013 , 11:56   Re: Rage SubModule: ColorChat
Reply With Quote #58

Then i suggest for the moment to use 2 separeted files, 1 for colorchar, 1 for rest.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
bogdyuttzu
Senior Member
Join Date: Dec 2009
Location: Romania
Old 03-04-2013 , 01:37   Re: Rage SubModule: ColorChat
Reply With Quote #59

Please update ColorChat for new Amxmodx
bogdyuttzu is offline
Send a message via Yahoo to bogdyuttzu
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-04-2013 , 05:14   Re: Rage SubModule: ColorChat
Reply With Quote #60

Open rage/functions/amxmodx_mm/CLangMngr_MergeDefinitionFile, and replace content with :

Spoiler


See if it helps.
__________________

Last edited by Arkshine; 03-04-2013 at 05:14.
Arkshine 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 16:37.


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