How to convert int to hex?
#2

well you can just do string way:
the difficult part is only after 9:
10 = A
11 = B
12 = C
13 = D
14 = E
15 = F
i suggest you using dialog inputs for each color and than switch:
pawn Код:
switch(color)
{
case 1: clr1 = "1";
case 2: clr1 = "2";
case 14: clr1 = ''D";
}
and then combine it all
Reply


Messages In This Thread
How to convert int to hex? - by Superthijs - 05.02.2012, 08:14
Re: How to convert int to hex? - by [WSF]ThA_Devil - 05.02.2012, 08:19
Re: How to convert int to hex? - by Superthijs - 05.02.2012, 08:19
Re: How to convert int to hex? - by [WSF]ThA_Devil - 05.02.2012, 08:21

Forum Jump:


Users browsing this thread: 1 Guest(s)