SetObjectMaterialText - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SetObjectMaterialText (
/showthread.php?tid=409150)
SetObjectMaterialText -
Louris - 20.01.2013
I don't understand where's problem.. Same text in all object. I want only 1 time to write this text.
Код:
uzrasasdm = CreateObject(3095, 1352.82, 1799.89, 3316.94, 90.00, 0.00, 90.00);
SetObjectMaterialText(uzrasasdm, "SA-MP {FFFFFF}0.3{008500}e {FF8200}RC7", 0, OBJECT_MATERIAL_SIZE_256x128,\
"Arial", 28, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
Re: SetObjectMaterialText -
Threshold - 20.01.2013
Just a guess, but I think It has something to do with the material size, try changing it to OBJECT_MATERIAL_SIZE_512x512
Re: SetObjectMaterialText -
LarzI - 20.01.2013
Quote:
Originally Posted by BenzoAMG
Just a guess, but I think It has something to do with the material size, try changing it to OBJECT_MATERIAL_SIZE_512x512
|
Indeed it is. The size of the MaterialText is too low to spread out on the entire object, thus making it repeat. Increaseing the material size will fix this without doubt.
Re: SetObjectMaterialText -
Louris - 20.01.2013
I try'ed many material sizes, but same..
Re: SetObjectMaterialText -
Threshold - 20.01.2013
Try increasing the font size until it fits one on the object, with the most appropriate material size as well.
Re: SetObjectMaterialText -
Louris - 21.01.2013
Any solutions?
Re: SetObjectMaterialText -
leong124 - 21.01.2013
The object that you want your text to be applied at is even larger than the largest possible texture size (512x512) for SetObjectMaterialText. It's not possible to have a direct fix, because it's how GTA:SA loads its textures.
I suggest you not to directly apply your text on the object and leaving the object in black. Then you create another transparent object (provided in 0.3e objects) which is smaller in size that you can apply your text on it. Finally, put the text on the black board object.