Object Material
#7

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
I meant a coordinate close/near-by/near 0.0, 0.0, 0.0. Don't get confused here.

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));
Or:
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);
Output:
Ofcourse i'm aware that will work, that's why i didn't mention "it will not work", but please note that you cannot have alpha value changed with object material text, i don't know why, but my method will work

And i also mentioned that except it might get confused, then using macro will do.

It's just that he said he is new with that thing, so i think it's better to point out why that and this (text, texture, macro, etc), so i explained why it's still dark/black, although you seems to be helping him the most of time but i don't think only him will try to learn in this sa-mp forums, eventually other people are new to this will search and found this thread. But however now you have explained it, so now that's good.
Reply


Messages In This Thread
Object Material - by TwinkiDaBoss - 21.12.2015, 02:07
Re: Object Material - by Denying - 21.12.2015, 04:10
Respuesta: Object Material - by Zume - 21.12.2015, 04:19
Re: Object Material - by SickAttack - 21.12.2015, 04:57
Re: Object Material - by RoboN1X - 21.12.2015, 05:32
Re: Object Material - by SickAttack - 21.12.2015, 06:35
Re: Object Material - by RoboN1X - 21.12.2015, 09:57
Re: Object Material - by Vince - 21.12.2015, 10:27
Re: Object Material - by TwinkiDaBoss - 21.12.2015, 18:39

Forum Jump:


Users browsing this thread: 1 Guest(s)