[BUG] SetObjectMaterialText
#1

I'm sorry to say this,
SetObjectMaterialText is awesome, but very buggy.

Look, I replaced from one object the texture with text
and in whole SA the objects with the same MODELID will change their textures.


Code:
pawn Код:
CreateObject(969, 1948.40, 1321.52, 7.97, 0.00, 0.00, 0.00);
SetObjectMaterialText(CreateObject(969, 1936.32, 1327.00, 8.13,   0.00, 0.00, 0.36),"The RolePlay Network",3,OBJECT_MATERIAL_SIZE_256x128,"Arial",24,0,0xFFFFFFFF,0xFFFFBE00,1);
Reply
#2

What kind of code is that....

Use this instead:
pawn Код:
new myobject;
myobject = CreateObject(969, 1948.40, 1321.52, 7.97, 0.00, 0.00, 0.00);
SetObjectMaterialText(myobject,"The RolePlay Network",3,OBJECT_MATERIAL_SIZE_256x128,"Arial",24,0,0xFFFFFFFF,0xFFFFBE00,1);
Reply
#3

It gives the same issue

//Edit:
New bug found:
The texture from the not replaced Object will sometimes disappear
Reply
#4

Because you are doing it wrong.
It doesn't change the material on all object with the same model, only of the object you created. So you seem to be mixing up the objectids somewhere in your code.
Reply
#5

I'm using it directly without any code between it.
So where can there be a mixup?
Reply
#6

I can sort of confirm this. I create an object, set the text, then destroy it and when I re-create the same model it's invisible.
Reply
#7

Please try RC7-2
Reply
#8

Thank you, it worked
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)