SA-MP Forums Archive
ObjectMaterialText problem. - 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: ObjectMaterialText problem. (/showthread.php?tid=638120)



ObjectMaterialText problem. - Develerux - 27.07.2017

Hi guys, I want to write white text in object.
I found the code but text is black.
So, in this code I did not found black hex text color.

tmpobjid = CreateDynamicObject(2789, 1956.2709, 1169.3798, 1144.2712, 0.00000, 0.00000, 180.00000);
SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "Bow_Abpave_Gen", 0x00000000);
SetDynamicObjectMaterial(tmpobjid, 1, 10101, "2notherbuildsfe", "Bow_Abpave_Gen", 0x00000000);
SetDynamicObjectMaterialText(tmpobjid, 0, "Test", 130, "Quartz MS", 35, 0, 0xFF000000, 0xFFFFFF00, 0);

So result is transparent background and black text.
I rewrite selected text. (see red color in code) from 0xFF000000 to 0xFFFFFFFF. And result its yellow. WTF ? Please help. Bad english skill, very sorry.