SetObjectMaterialText
#1

The object is blank, no text appears on it, what can be wrong?


pawn Код:
PlayerObject[playerid][PlayerObjectCount[playerid]] = CreateDynamicObject(19353, x + 6, y + 6, z + 0.5, 0.0, 0.0, 96.0);
    SetObjectMaterialText(objectid, text, 0, OBJECT_MATERIAL_SIZE_256x128,\
    "Arial", 28, 0, COLOR_RED, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
Reply
#2

SetDynamicObjectMaterialText
Reply
#3

Is there such a thing?
Reply
#4

Quote:
Originally Posted by Ananisiki
Посмотреть сообщение
Is there such a thing?
There is. It's through Incognito's streamer plugin. https://sampforum.blast.hk/showthread.php?tid=102865
Reply
#5

I am getting errors when i use it, example on how to create it?
Reply
#6

Bump
Reply
#7

Show the errors and your code, so we can help you.
Reply
#8

pawn Код:
SetDynamicObjectMaterialText(objectid, text, 0, OBJECT_MATERIAL_SIZE_256x128,\
    "Arial", 28, 0, COLOR_RED, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
pawn Код:
error 035: argument type mismatch (argument 2)
pawn Код:
"Arial", 28, 0, COLOR_RED, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
Reply
#9

You need a "text" for the second argument
Код:
SetDynamicObjectMaterialText(objectid, "Your Text OR a space (blank)", 0, OBJECT_MATERIAL_SIZE_256x128,\
    "Arial", 28, 0, COLOR_RED, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
Reply
#10

The warning is not on that line, it is on this one

pawn Код:
"Arial", 28, 0, COLOR_RED, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)