[Solved] Problem with client_print_color()
Hey everyone,
I'm using latest AMX Mod X development version and using client_print_color() in my plugin. But there is a problem. When I use dictionary, I don't know how to specify tags like ^4 or ^1. They aren't working (they just show up like plain text). I even tried !g or !n, but they aren't working too. How can I specify color tags in client_print_color() P.S.1: I'm using core client_print_color() P.S.2: I searched, searched, searched, but didn't get any correct answer. So please don't tell me Search :3 Thanks. |
Re: Problem with client_print_color()
Could you post the line (client_print_color() call) in which you are printing the message? Also, post the line from dictionary file you are trying to print.
|
Re: Problem with client_print_color()
A line should always starts by an color identifier, whatever ^1, ^2, ^3 or ^4. Otherwise color won't work, it's CS behavior.
|
Re: Problem with client_print_color()
Quote:
But I told him to post his code and dictionary, just in case this isn't the actual problem. |
Re: Problem with client_print_color()
No, using ^1, etc. in dictionary file is properly handled by AMXX. Issue is either line doesn't start with a color, or is trying to use color on other mod than CS.
|
Re: Problem with client_print_color()
I can't use ^1 or ^4 in start of my line.
Here is a part of my dictionary: Code:
ALREADY_GODMODE = You already have !gGodMode!n! |
Re: Problem with client_print_color()
Quote:
Quote:
|
Re: Problem with client_print_color()
Of course I needed to highlight a certain world in the middle of my sentence :|
|
Re: Problem with client_print_color()
^1 for normal color. So you just do: ^1some text, ^4highlighted_word^1 some text.
|
Re: [Solved] Problem with client_print_color()
Thank you Arkshine, solved.
|
All times are GMT -4. The time now is 18:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.