Need help with MessageToAdmins
#8

Quote:
Originally Posted by xir
Посмотреть сообщение
so how can i edit it to make it works with two colors please show me
First i would like to start by saying i havent yet message with 0.3c myself, so this is just going off of what i see :P.


To use multiple colors you would have to add physical color tags into your code, for example:

Код:
MessageToAdmins(0xFFFFFFFF, "This is all white {FF0000}this is all red, {00FF00}and this is all green!");
If you are using anything other than 0.3c you would have to edit your function to support multiple strings and colors, since prior versions to 0.3c dont support multiple colors in a SINGLE client message. You would ideally do something like sscanf where you have a param for the entire string, a parameter for the specifiers (including delimiter), and then an ellipses for the colors. The function would pretty much tokenize the string based on the delimeter and send all the messages one after another with the desired colors.

This would be a bit of an overkill though, you of course can do it easier. Though i dont think this is even what you desire, i think you're looking for the 0.3c solution :P.
Reply


Messages In This Thread
Need help with MessageToAdmins - by xir - 08.01.2011, 07:58
Re: Need help with MessageToAdmins - by iggy1 - 08.01.2011, 08:03
Re: Need help with MessageToAdmins - by Ash. - 08.01.2011, 08:16
Re: Need help with MessageToAdmins - by xir - 08.01.2011, 08:23
Re: Need help with MessageToAdmins - by xir - 08.01.2011, 09:39
Re: Need help with MessageToAdmins - by Alex_Valde - 08.01.2011, 10:03
Re: Need help with MessageToAdmins - by DVDK - 08.01.2011, 10:08
Re: Need help with MessageToAdmins - by Kyosaur - 08.01.2011, 10:11
Re: Need help with MessageToAdmins - by Kwarde - 08.01.2011, 10:18
Re: Need help with MessageToAdmins - by xir - 08.01.2011, 10:22

Forum Jump:


Users browsing this thread: 2 Guest(s)