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



SetObjectMaterialText - Izaque1998 - 23.08.2015

How can I do this?

text [objectid] [texto] ?


Re: SetObjectMaterialText - YoussefHammad - 23.08.2015

Click here


Re: SetObjectMaterialText - Champagne - 23.08.2015

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,


Re: SetObjectMaterialText - Izaque1998 - 23.08.2015

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)



Re: SetObjectMaterialText - Wingman - 23.08.2015

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


Re: SetObjectMaterialText - Izaque1998 - 24.08.2015

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


Re: SetObjectMaterialText - Crayder - 24.08.2015

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.


Re: SetObjectMaterialText - iTakelot - 24.08.2015

"is[128]" - "iff"


Re: SetObjectMaterialText - Crayder - 24.08.2015

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