SA-MP Forums Archive
Materialtext - 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: Materialtext (/showthread.php?tid=407718)



Materialtext - Louris - 15.01.2013

public OnPlayerConnect(playerid)
{
SetObjectMaterialText(uzrasasusiu, "SA-MP {FFFFFF}0.3{008500}e", 0, OBJECT_MATERIAL_SIZE_512x512,\
"Arial", 28, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);

uzrasasusiu = CreateObject(16000, -1740.59, 1034.40, 12.22, 0.00, 0.00, 270.02);


But it doesn't show anything, just object..


Re: Materialtext - Scenario - 15.01.2013

pawn Код:
SetObjectMaterialText(uzrasasusiu, "SA-MP {FFFFFF}0.3{008500}e", 0, OBJECT_MATERIAL_SIZE_512x512,\
"Arial", 28, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
I see you're using a backwards slash within that line. I would remove it and try again.

pawn Код:
SetObjectMaterialText(uzrasasusiu, "SA-MP {FFFFFF}0.3{008500}e", 0, OBJECT_MATERIAL_SIZE_512x512, "Arial", 28, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
Ref: https://sampwiki.blast.hk/wiki/SetObjectMaterialText


Re: Materialtext - anybox - 15.01.2013

And switch lines. CreateObject is first, SetObjectMaterialText is second.


Re: Materialtext - B-Matt - 15.01.2013

Код:
public OnPlayerConnect(playerid)
{

uzrasasusiu = CreateObject(16000, -1740.59, 1034.40, 12.22, 0.00, 0.00, 270.02);

SetObjectMaterialText(uzrasasusiu, "SA-MP {FFFFFF}0.3{008500}e", 0, OBJECT_MATERIAL_SIZE_512x512,\
"Arial", 28, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
Backslash is for next line in editor. There is no matter about backslash in the code.