19.03.2015, 07:19
Just make sth like this:
But attention ColorA must be >= ColorB
Код:
stock ColorBetween(ColorA, ColorB) { new str[11]; valstr(str,ColorA); new x = strval(str); valstr(str,ColorB); new y = strval(str); return x-y; } printf("0x%x",ColorBetween(0xF, 0xA)); //-> Gives u 0x5