SetObjectMaterialText problem - 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 problem (
/showthread.php?tid=378720)
SetObjectMaterialText problem -
Eugene. - 19.09.2012
Well, I added this lines into my gamemode and it doesn't work. It sets my gamemode size to 0. Can someone help me out ?
Код:
//Test
new MyObject2 = CreateObject(19353, -208.3112, 1119.1740, 21.9221, 0.0000, 0.0000, 0.0117);
SetObjectMaterialText(MyObject2, "City Hall", 0, 50, "Arial", 15, 1, -1, 0, 1);
Re: SetObjectMaterialText problem -
clarencecuzz - 19.09.2012
Try this:
pawn Код:
new MyObject2 = CreateObject(19353, -208.3112, 1119.1740, 21.9221, 0.0000, 0.0000, 0.0117);
SetObjectMaterialText(MyObject2, "City Hall", 0, OBJECT_MATERIAL_SIZE_128x64, "Arial", 15, 1, 0xFFFFFFFF, 0xFFFFFFFF, 1);
You can change 0xFFFFFFFF to any color you want, just make sure it's in hexadecimal/ARGB format.
Re: SetObjectMaterialText problem -
Eugene. - 19.09.2012
Well. Yours works pretty good.