SA-MP Forums Archive
SetObjectMaterialText - Text not appearing. - 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 - Text not appearing. (/showthread.php?tid=435724)



SetObjectMaterialText - Text not appearing. - Black Axe - 08.05.2013

PHP код:
    new MyObject CreateDynamicObject(28851831.5167236328, -1590.885864257817.0568733215330090.14697265625);
    
SetObjectMaterialText(MyObject"MyText"040,"Arial Black"2800xAA3333AA0xFF0000001); 
Well - The object appears.. But it's empty :/

Help would be appreciated , Thanks in advance.


Re: SetObjectMaterialText - Text not appearing. - Vince - 08.05.2013

Doesn't work with dynamic objects since they are in fact playerobjects.


Re: SetObjectMaterialText - Text not appearing. - MP2 - 08.05.2013

What Vince is saying is, you're creating a DYNAMIC object, so you need to use the function to set a DYNAMIC object's text (SetDYNAMICObjectMaterialText).


Re: SetObjectMaterialText - Text not appearing. - Fitri - 20.07.2013

try this

pawn Код:
new MyObject = CreateDynamicObject(2885, 1831.5167236328, -1590.8858642578, 17.056873321533, 0, 0, 90.14697265625);
    SetObjectMaterialText(MyObject,0 , "MyText", 40,"Arial Black", 28, 0, 0xAA3333AA, 0xFF000000, 1);