SA-MP Forums Archive
[Help] SetObjectMaterialText 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: [Help] SetObjectMaterialText Color (/showthread.php?tid=360359)



[Help] SetObjectMaterialText Color - tony_fitto - 17.07.2012

Hey there,

I have a huge problem, I'm trying to get this object to become green with this green color (0x00FF00FF) but some how it doesn't change it self to green, it becomes purple instead. Any ideas why or how I can fix it?

I've dubble checked the color, and tested other colors some how they doesn't turn out to be the same color as it should be as well.

pawn Код:
Green[0] = CreateObject(16000, 1401.11, -1374.85, 34.67,   0.00, 0.00, 90.00);
SetObjectMaterialText(Green[0], " ", 3, OBJECT_MATERIAL_SIZE_512x512, " ", 28, 0, 0xFFFFFFFF, 0x00FF00FF, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
-Regards,
Tony


Re: [Help] SetObjectMaterialText Color - Vince - 17.07.2012

Colors for SetObjectMaterial/Text are ARGB, not RGBA. Don't ask my why that is, because I don't know.


Re: [Help] SetObjectMaterialText Color - tony_fitto - 17.07.2012

Can you explain to me what the difference is ?
I have no idea about what it is and never herd it before XD


Re: [Help] SetObjectMaterialText Color - Vince - 17.07.2012

Colors for client messages and player colors uses 0xRRGGBBAA, Object Materials use 0xAARRGGBB. So you just put the last two characters in front and you're done.