21.12.2015, 06:35
Quote:
You meant with 0.0 rotation values, also that's material text, and font name is Arial.
However i'm not sure why need to convert it when it's coded directly... I don't think moving the last two alpha value is a hard job. Except you are lazy or will get confused, then using macros like _Zume said will do it. Anyway if you want to make the wall with yellow color but texture stay same, then use this: PHP код:
If you want to make the wall texture with plain yellow color, then use this: PHP код:
PHP код:
There is also a plain white color texture, so you can color it with any color you like, just change the 0xFFFFFF00 (yellow). PHP код:
|
You could use any font name, wouldn't make a difference - even putting "SA-MP Forums" wouldn't make a difference. No. Text. Is. Going. To. Be. Displayed. Anyway.
The macro/conversion is so that he doesn't get confused and it's easier for him to use any color in the world.
He could also use "SetDynamicObjectMaterialText", it pretty much does the same thing, but he would basically just be putting to use the background color option and he wouldn't have to specify any textures. It will use a solid color form.
Meaning he would do (by also removing unnecessary used fields placed above):
pawn Код:
new object_id = CreateDynamicObject(2922, 133.76311, -75.74743, 1.13980, 0.00000, 0.00000, 0.00000);
SetDynamicObjectMaterialText(object_id, 0, " ", OBJECT_MATERIAL_SIZE_256x128, " ", 0, 0, 0, (0xFFF000FF >>> 8 | 0xFFF000FF << 24));
pawn Код:
new object_id = CreateDynamicObject(2922, 133.76311, -75.74743, 1.13980, 0.00000, 0.00000, 0.00000);
SetDynamicObjectMaterialText(object_id, 0, " ", OBJECT_MATERIAL_SIZE_256x128, " ", 0, 0, 0, 0xFFFFF000);