SetObjectMaterialText
#1

How can I do this?

text [objectid] [texto] ?
Reply
#2

Click here
Reply
#3

https://sampwiki.blast.hk/wiki/SetObjectMaterialText
This may help.

Example: SetObjectMaterialText(objectid, "SA-MP {FFFFFF}0.3{008500}e {FF8200}RC7", 0, OBJECT_MATERIAL_SIZE_256x128,
Reply
#4

I've looked

PHP код:
COMMAND:text(playeridparams[])
{
new 
texto;
if (
sscanf(params"if"object,texto)) SendClientMessage(playerid0xa9c4e4ff"/text objeto texto");
SetObjectMaterialText (Objetoidtexto OBJECT_MATERIAL_SIZE_256x128," Arial "2800xFFFF82000xFF000000,OBJECT_MATERIAL_TEXT_ALIGN_CENTER);//Line error.
return 1;

I tried to do but gave it:
Код:
(142) : error 035: argument type mismatch (argument 2)
Reply
#5

Код:
SetObjectMaterialText(objectid, texto, 0, OBJECT_MATERIAL_SIZE_256x128,
    "Arial", 28, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
"Objetoid"// Misspelled
Reply
#6

Quote:
Originally Posted by Wingman
Посмотреть сообщение
Код:
SetObjectMaterialText(objectid, texto, 0, OBJECT_MATERIAL_SIZE_256x128,
    "Arial", 28, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
"Objetoid"// Misspelled
this is not the error.

HELP PLS
Reply
#7

Quote:
Originally Posted by Izaque1998
Посмотреть сообщение
I've looked

PHP код:
COMMAND:text(playeridparams[])
{
new 
texto[128];
if (
sscanf(params"is[128]"object,texto)) SendClientMessage(playerid0xa9c4e4ff"/text objeto texto");
SetObjectMaterialText (objecttexto OBJECT_MATERIAL_SIZE_256x128," Arial "2800xFFFF82000xFF000000,OBJECT_MATERIAL_TEXT_ALIGN_CENTER);//Line error.
return 1;

I tried to do but gave it:
Код:
(142) : error 035: argument type mismatch (argument 2)
It's corrected in the quote... You were using a float in the sscanf and you didn't have a string.
Reply
#8

"is[128]" - "iff"
Reply
#9

Quote:
Originally Posted by iTakelot
Посмотреть сообщение
"is[128]" - "iff"
No, definitely not. It's right how I have it.

"is[128]" = integer for the object, string for the text
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)