SA-MP Forums Archive
[Ayuda] SetObjectMaterial ... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: [Ayuda] SetObjectMaterial ... (/showthread.php?tid=348640)



[Ayuda] SetObjectMaterial ... - OTACON - 06.06.2012

Buenas a Todos, Quiero Cambiarle el color a un objeto con la nueva funcion SetObjectMaterial, pero no se cambia y no se por que Sera :S.

Alguien me podria ayudar ?

Asi coloke:
pawn Код:
SetObjectMaterial(objetoid, 0, 19355, "wall003", "wall003", 0xFF0000AA);
Desde Ya muchas Gracias.


Respuesta: [Ayuda] SetObjectMaterial ... - [J]ulian - 06.06.2012

їCуmo estбs creando el objeto?


Respuesta: [Ayuda] SetObjectMaterial ... - OTACON - 07.06.2012

Quote:
Originally Posted by [J]ulian
Посмотреть сообщение
їCуmo estбs creando el objeto?
pawn Код:
objetoid = CreateObject(...);
            AttachObjectToVehicle(objetoid, vehicleid, ...);
            SetObjectMaterial(objetoid, 0, 19355, "wall003", "wall003", 0xFF0000AA);
pero creo ke esta mal esto 0, 19355, "wall003", "wall003" :S me pueden explicar eso, es ke el traductor de ****** traduce cualkier cosa :S xD


Respuesta: [Ayuda] SetObjectMaterial ... - OTACON - 08.06.2012

alguien me ayuda? :S


Re: [Ayuda] SetObjectMaterial ... - Daniel-92 - 08.06.2012

que tal si usбs SetObjectMaterial antes de atarlo al vehiculo.


Respuesta: [Ayuda] SetObjectMaterial ... - TheChaoz - 09.06.2012

Los datos ingresados "wall003" "wall003" son los correctos?


Respuesta: [Ayuda] SetObjectMaterial ... - OTACON - 09.06.2012

Quote:
Originally Posted by the_chaoz
Посмотреть сообщение
Los datos ingresados "wall003" "wall003" son los correctos?
wall003 es el nombre del objeto segun wiki


Respuesta: [Ayuda] SetObjectMaterial ... - TheChaoz - 09.06.2012

Pero uno es el nombre de la textura y el otro es el nombre del '.txd'.


Respuesta: [Ayuda] SetObjectMaterial ... - OTACON - 09.06.2012

Quote:
Originally Posted by the_chaoz
Посмотреть сообщение
Pero uno es el nombre de la textura y el otro es el nombre del '.txd'.
ah ok, es en el orden como lo dijiste tu? y el 0 ke es ?


Respuesta: [Ayuda] SetObjectMaterial ... - TheChaoz - 09.06.2012

Quote:
Originally Posted by bytytus
Посмотреть сообщение
ah ok, es en el orden como lo dijiste tu? y el 0 ke es ?
Код:
SetObjectMaterial(objectid, materialindex, modelid, txdname[], texturename[], materialcolor)