Materialtext
#1

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..
Reply
#2

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
Reply
#3

And switch lines. CreateObject is first, SetObjectMaterialText is second.
Reply
#4

Код:
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)