[Help] SetObjectMaterialText Color
#1

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
Reply
#2

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

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)