Material text background color
#1

Hi,

I'am doing like this

new insdasd[20];
format(insdasd,19,"0xFFFFFFFF");
new jngnasd;
jngnasd = strval(insdasd);

And i use jngnasd in material text background color, but not effect that color for here example white..
Reply
#2



Color is already an integer. They're usually represented in hexadecimal format. With the emphasis on the last part of that word: decimal. You're converting an integer to a string and then you (are trying to) convert that string back to an integer. That is, well, stupid. Strval also only works with numbers represented in base 10.

Код:
jngnasd = 0xFFFFFFFF;
Awesome variable names too, by the way. /s
Reply
#3

But FFFFFFFF part is string

format(insdasd,19,"0x%s", inputecolorstring);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)