SetObjectMaterialText -
Ananisiki - 14.03.2014
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);
Re: SetObjectMaterialText -
newbienoob - 14.03.2014
Set
DynamicObjectMaterialText
Re: SetObjectMaterialText -
Ananisiki - 14.03.2014
Is there such a thing?
Re: SetObjectMaterialText -
rangerxxll - 14.03.2014
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
Re: SetObjectMaterialText -
Ananisiki - 14.03.2014
I am getting errors when i use it, example on how to create it?
Re: SetObjectMaterialText -
Ananisiki - 14.03.2014
Bump
Re: SetObjectMaterialText -
davve95 - 14.03.2014
Show the errors and your code, so we can help you.
Re: SetObjectMaterialText -
Ananisiki - 14.03.2014
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);
AW: SetObjectMaterialText -
Macronix - 14.03.2014
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);
Re: SetObjectMaterialText -
Ananisiki - 14.03.2014
The warning is not on that line, it is on this one
pawn Код:
"Arial", 28, 0, COLOR_RED, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);