How do I combine this?
#8

Quote:
Originally Posted by danielpalade
Посмотреть сообщение
But my color is not a HEX number. Its in this form, "XXXXXX" so "FFFFFF". Would that work the same?
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.
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)