SA-MP Forums Archive
material back ground color. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: material back ground color. (/showthread.php?tid=445216)



material back ground color. - audriuxxx - 20.06.2013

Hi,

What material back ground color is in picture?



Because, if i use black it's very dark color.. Like 0x000000AA, but here is very nice grey or black i don't know, but nice.

I take this picture hex, and i get that:

2E2E2C

But when i build this hex in this:

SetDynamicObjectMaterialText(OBJEKTMY, 0,">>>>", OBJECT_MATERIAL_SIZE_512x128,"Arial", 50, 1,0xFFFF8200, 0x2E2E2CAA, 1);


Background become blue? wtf?


Re: material back ground color. - Vince - 20.06.2013

Material colors are ARGB, not RGBA.


Re: material back ground color. - MP2 - 20.06.2013

edit: didn't see vince


Re: material back ground color. - audriuxxx - 20.06.2013

How to write ARGB?


Re: material back ground color. - audriuxxx - 20.06.2013

UP.m


Re: material back ground color. - Kindred - 20.06.2013

Well, I assume using my common sense that since both ARGB and RGBA have the same letters in it, you switch it arround.

pawn Код:
//My grey color in RGBA
0xAFAFAFAA

//My grey color using common sense to change it to ARGB
0xAAAFAFAF
Could be wrong, but I'm using my common sense.


Re: material back ground color. - audriuxxx - 21.06.2013

Not working.


Re: material back ground color. - audriuxxx - 23.06.2013

How this hex code: 2E2E2C

Write to that code, i can use in

SetDynamicObjectMaterialText ?