How do I combine this?
#9

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
Colors AREN'T hexs, they are integers when the script is compiled. Just convert the hexadecimal value with the following function if you're having this much trouble, then:
pawn Код:
stock HexToInt(hex[])
{
    new int;
    sscanf(hex, "x", int);
    return int;
}
pawn Код:
SendToClan(playerVariables[playerid][pClan], HexToInt(clanVariables[playerVariables[playerid][pClan]][cClanColor]), szMessage);
Just remove "{%s}" and "clanVariables[playerVariables[playerid][pClan]][cClanColor]" from the formats.
That didn't work. The text is straight black. The color code was D6C692 btw.
Reply


Messages In This Thread
How do I combine this? - by danielpalade - 28.03.2016, 01:21
Re: How do I combine this? - by SickAttack - 28.03.2016, 01:46
Re: How do I combine this? - by danielpalade - 28.03.2016, 02:13
Re: How do I combine this? - by AdrianG - 28.03.2016, 02:20
Re: How do I combine this? - by danielpalade - 28.03.2016, 02:42
Re: How do I combine this? - by SickAttack - 28.03.2016, 03:03
Re: How do I combine this? - by danielpalade - 28.03.2016, 03:16
Re: How do I combine this? - by SickAttack - 28.03.2016, 03:21
Re: How do I combine this? - by danielpalade - 28.03.2016, 03:32
Re: How do I combine this? - by SickAttack - 28.03.2016, 03:41

Forum Jump:


Users browsing this thread: 1 Guest(s)