SetObjectMaterialText Black background?
#1

Код:
SetObjectMaterialText(avtock0, "Newbie", 0, 50, "Arial", 27, 1, 1, 163, 1);
What is color code for BLACK ? i tried "0" but then the background dispear...
Reply
#2

You have to use color in ARGB format.

Black: 0x00000000
Reply
#3

UP!

@ Dude i used the code you gave and that's the result
[IMG][/IMG]
Код:
	for(new i; i<sizeof(NewbieVehicles); i++)
	{

		if(NewbieVehicles[i])
		{
			new avtock0 = CreateObject(19309,0,0,0,0,0,0,100.0);
  			SetObjectMaterialText(avtock0, "Newbie", 0, 50, "Arial", 27, 1, COLOR_YELLOW2, 0x00000000, 1);
			AttachObjectToVehicle(avtock0, NewbieVehicles[i], 0.0, -0.5, 0.9, 0.0, 0.0, 0.0);
			mFuel[i]= 100;
		}
	}
Reply
#4

Set the alpha to FF of course.
Reply
#5

Yes, my bad. It must be 0xFF000000.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)