[BUG] SetObjectMaterialText -
NetKiel - 21.04.2012
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);
AW: [BUG] SetObjectMaterialText -
Drebin - 21.04.2012
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);
AW: [BUG] SetObjectMaterialText -
NetKiel - 21.04.2012
It gives the same issue
//Edit:
New bug found:
The texture from the not replaced Object will sometimes disappear
AW: [BUG] SetObjectMaterialText -
Drebin - 21.04.2012
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.
AW: [BUG] SetObjectMaterialText -
NetKiel - 21.04.2012
I'm using it directly without any code between it.
So where can there be a mixup?
Re: [BUG] SetObjectMaterialText -
MP2 - 21.04.2012
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.
Re: [BUG] SetObjectMaterialText -
Scott - 22.04.2012
Please try RC7-2
AW: [BUG] SetObjectMaterialText -
NetKiel - 22.04.2012
Thank you, it worked