[Ajuda] SetObjectMaterial nгo funciona
#1

Ola galera, Hoje eu tentei Texturizar uns objetos e nгo funciono...

Код:
	
new MaterialLS[24];

MaterialLS[0] = CreateDynamicObject(1649, 1286.38794, -1655.26306, 13.39800,   0.00000, 0.00000, 270.00000);
	MaterialLS[1] = CreateDynamicObject(1649, 1286.39160, -1659.68665, 13.40870,   0.00000, 0.00000, 90.00000);
	MaterialLS[2] = CreateDynamicObject(1649, 1286.38367, -1659.68726, 16.62570,   0.00000, 0.00000, 270.00000);
	MaterialLS[3] = CreateDynamicObject(1649, 1286.38367, -1659.68726, 19.94580,   0.00000, 0.00000, 270.00000);
	MaterialLS[4] = CreateDynamicObject(1649, 1286.38367, -1659.68726, 13.30870,   0.00000, 0.00000, 270.00000);
	MaterialLS[5] = CreateDynamicObject(1649, 1286.39160, -1659.68665, 16.72660,   0.00000, 0.00000, 90.00000);
	MaterialLS[6] = CreateDynamicObject(1649, 1286.39160, -1659.68665, 20.04610,   0.00000, 0.00000, 90.00000);
	MaterialLS[7] = CreateDynamicObject(1649, 1286.40686, -1655.28149, 13.40870,   0.00000, 0.00000, 90.00000);
	MaterialLS[8] = CreateDynamicObject(1649, 1286.40686, -1655.28149, 16.71609,   0.00000, 0.00000, 90.00000);
	MaterialLS[9] = CreateDynamicObject(1649, 1286.40686, -1655.28149, 19.99061,   0.00000, 0.00000, 90.00000);
	MaterialLS[10] = CreateDynamicObject(1649, 1286.38794, -1655.26306, 16.67500,   0.00000, 0.00000, 270.00000);
	MaterialLS[11] = CreateDynamicObject(1649, 1286.38794, -1655.26306, 19.99700,   0.00000, 0.00000, 270.00000);
	MaterialLS[12] = CreateDynamicObject(1649, 1286.40686, -1650.84155, 16.73610,   0.00000, 0.00000, 90.00000);
	MaterialLS[13] = CreateDynamicObject(1649, 1286.40686, -1650.84155, 19.96465,   0.00000, 0.00000, 90.00000);
	MaterialLS[14] = CreateDynamicObject(1649, 1286.38794, -1650.84314, 16.71500,   0.00000, 0.00000, 270.00000);
	MaterialLS[15] = CreateDynamicObject(1649, 1286.38794, -1650.84314, 19.96004,   0.00000, 0.00000, 270.00000);
	MaterialLS[16] = CreateDynamicObject(1649, 1286.38794, -1647.90308, 13.41730,   0.00000, 0.00000, 270.00000);
	MaterialLS[17] = CreateDynamicObject(1649, 1286.40686, -1646.48157, 16.71610,   0.00000, 0.00000, 90.00000);
	MaterialLS[18] = CreateDynamicObject(1649, 1286.40686, -1646.48157, 19.98910,   0.00000, 0.00000, 90.00000);
	MaterialLS[19] = CreateDynamicObject(1649, 1286.40686, -1647.90149, 13.40870,   0.00000, 0.00000, 90.00000);
	MaterialLS[20] = CreateDynamicObject(1649, 1286.38794, -1646.42310, 16.73500,   0.00000, 0.00000, 270.00000);
	MaterialLS[21] = CreateDynamicObject(1649, 1286.38794, -1646.42310, 20.03450,   0.00000, 0.00000, 270.00000);
	MaterialLS[22] = CreateDynamicObject(1649, 1286.38794, -1643.50305, 13.41730,   0.00000, 0.00000, 270.00000);
	MaterialLS[23] = CreateDynamicObject(1649, 1286.40686, -1643.48145, 13.40870,   0.00000, 0.00000, 90.00000);
	for(new i; i < sizeof(MaterialLS); i++)
	{
	    SetObjectMaterial(MaterialLS[i], 0, 3922, "bistro", "StainedGlass", 0xFFFFFFFF);
	}
Reply
#2

Use:

Quote:

CreateDynamicObjectMaterialLS

stock CreateDynamicObjectMaterialLS(model, Float, Float:y, Float:z, Float:rx, Float:ry, Float:rz) {
new obj = CreateDynamicObject(model, x, y, z, rx, ry, rz);
SetDynamicObjectMaterial(obj, 0, 3922, "bistro", "StainedGlass", 0);
return obj;
}

Reply
#3

Код:
C:\Users\Matheus\Desktop\[GM] GW - Oficial\gamemodes\GW.pwn(1726) : warning 213: tag mismatch
C:\Users\Matheus\Desktop\[GM] GW - Oficial\gamemodes\GW.pwn(1727) : warning 213: tag mismatch
C:\Users\Matheus\Desktop\[GM] GW - Oficial\gamemodes\GW.pwn(1728) : warning 213: tag mismatch
C:\Users\Matheus\Desktop\[GM] GW - Oficial\gamemodes\GW.pwn(1729) : warning 213: tag mismatch
C:\Users\Matheus\Desktop\[GM] GW - Oficial\gamemodes\GW.pwn(1730) : warning 213: tag mismatch
C:\Users\Matheus\Desktop\[GM] GW - Oficial\gamemodes\GW.pwn(1731) : warning 213: tag mismatch
C:\Users\Matheus\Desktop\[GM] GW - Oficial\gamemodes\GW.pwn(1732) : warning 213: tag mismatch
C:\Users\Matheus\Desktop\[GM] GW - Oficial\gamemodes\GW.pwn(1733) : warning 213: tag mismatch
C:\Users\Matheus\Desktop\[GM] GW - Oficial\gamemodes\GW.pwn(1734) : warning 213: tag mismatch
C:\Users\Matheus\Desktop\[GM] GW - Oficial\gamemodes\GW.pwn(1735) : warning 213: tag mismatch
C:\Users\Matheus\Desktop\[GM] GW - Oficial\gamemodes\GW.pwn(1736) : warning 213: tag mismatch
C:\Users\Matheus\Desktop\[GM] GW - Oficial\gamemodes\GW.pwn(1737) : warning 213: tag mismatch
C:\Users\Matheus\Desktop\[GM] GW - Oficial\gamemodes\GW.pwn(1738) : warning 213: tag mismatch
C:\Users\Matheus\Desktop\[GM] GW - Oficial\gamemodes\GW.pwn(1739) : warning 213: tag mismatch
C:\Users\Matheus\Desktop\[GM] GW - Oficial\gamemodes\GW.pwn(1740) : warning 213: tag mismatch
C:\Users\Matheus\Desktop\[GM] GW - Oficial\gamemodes\GW.pwn(1741) : warning 213: tag mismatch
C:\Users\Matheus\Desktop\[GM] GW - Oficial\gamemodes\GW.pwn(1742) : warning 213: tag mismatch
C:\Users\Matheus\Desktop\[GM] GW - Oficial\gamemodes\GW.pwn(1743) : warning 213: tag mismatch
C:\Users\Matheus\Desktop\[GM] GW - Oficial\gamemodes\GW.pwn(1744) : warning 213: tag mismatch
C:\Users\Matheus\Desktop\[GM] GW - Oficial\gamemodes\GW.pwn(1745) : warning 213: tag mismatch
C:\Users\Matheus\Desktop\[GM] GW - Oficial\gamemodes\GW.pwn(1746) : warning 213: tag mismatch
C:\Users\Matheus\Desktop\[GM] GW - Oficial\gamemodes\GW.pwn(1747) : warning 213: tag mismatch
C:\Users\Matheus\Desktop\[GM] GW - Oficial\gamemodes\GW.pwn(1748) : warning 213: tag mismatch
C:\Users\Matheus\Desktop\[GM] GW - Oficial\gamemodes\GW.pwn(1749) : warning 213: tag mismatch
C:\Users\Matheus\Desktop\[GM] GW - Oficial\gamemodes\GW.pwn(3111) : error 017: undefined symbol "x"
C:\Users\Matheus\Desktop\[GM] GW - Oficial\gamemodes\GW.pwn(3109) : warning 203: symbol is never used: "Float"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#4

MANDA AS LINHAS DOS WARNING
Reply
#5

Quote:
Originally Posted by G2SAMP
Посмотреть сообщение
MANDA AS LINHAS DOS WARNING
Aqui esta as linhas dos warnings..

Код:
	CreateDynamicObjectMaterialLS(1649, 1286.38794, -1655.26306, 13.39800,   0.00000, 0.00000, 270.00000);
	CreateDynamicObjectMaterialLS(1649, 1286.39160, -1659.68665, 13.40870,   0.00000, 0.00000, 90.00000);
	CreateDynamicObjectMaterialLS(1649, 1286.38367, -1659.68726, 16.62570,   0.00000, 0.00000, 270.00000);
	CreateDynamicObjectMaterialLS(1649, 1286.38367, -1659.68726, 19.94580,   0.00000, 0.00000, 270.00000);
	CreateDynamicObjectMaterialLS(1649, 1286.38367, -1659.68726, 13.30870,   0.00000, 0.00000, 270.00000);
	CreateDynamicObjectMaterialLS(1649, 1286.39160, -1659.68665, 16.72660,   0.00000, 0.00000, 90.00000);
	CreateDynamicObjectMaterialLS(1649, 1286.39160, -1659.68665, 20.04610,   0.00000, 0.00000, 90.00000);
	CreateDynamicObjectMaterialLS(1649, 1286.40686, -1655.28149, 13.40870,   0.00000, 0.00000, 90.00000);
	CreateDynamicObjectMaterialLS(1649, 1286.40686, -1655.28149, 16.71609,   0.00000, 0.00000, 90.00000);
	CreateDynamicObjectMaterialLS(1649, 1286.40686, -1655.28149, 19.99061,   0.00000, 0.00000, 90.00000);
	CreateDynamicObjectMaterialLS(1649, 1286.38794, -1655.26306, 16.67500,   0.00000, 0.00000, 270.00000);
	CreateDynamicObjectMaterialLS(1649, 1286.38794, -1655.26306, 19.99700,   0.00000, 0.00000, 270.00000);
	CreateDynamicObjectMaterialLS(1649, 1286.40686, -1650.84155, 16.73610,   0.00000, 0.00000, 90.00000);
	CreateDynamicObjectMaterialLS(1649, 1286.40686, -1650.84155, 19.96465,   0.00000, 0.00000, 90.00000);
	CreateDynamicObjectMaterialLS(1649, 1286.38794, -1650.84314, 16.71500,   0.00000, 0.00000, 270.00000);
	CreateDynamicObjectMaterialLS(1649, 1286.38794, -1650.84314, 19.96004,   0.00000, 0.00000, 270.00000);
	CreateDynamicObjectMaterialLS(1649, 1286.38794, -1647.90308, 13.41730,   0.00000, 0.00000, 270.00000);
	CreateDynamicObjectMaterialLS(1649, 1286.40686, -1646.48157, 16.71610,   0.00000, 0.00000, 90.00000);
	CreateDynamicObjectMaterialLS(1649, 1286.40686, -1646.48157, 19.98910,   0.00000, 0.00000, 90.00000);
	CreateDynamicObjectMaterialLS(1649, 1286.40686, -1647.90149, 13.40870,   0.00000, 0.00000, 90.00000);
	CreateDynamicObjectMaterialLS(1649, 1286.38794, -1646.42310, 16.73500,   0.00000, 0.00000, 270.00000);
	CreateDynamicObjectMaterialLS(1649, 1286.38794, -1646.42310, 20.03450,   0.00000, 0.00000, 270.00000);
	CreateDynamicObjectMaterialLS(1649, 1286.38794, -1643.50305, 13.41730,   0.00000, 0.00000, 270.00000);
	CreateDynamicObjectMaterialLS(1649, 1286.40686, -1643.48145, 13.40870,   0.00000, 0.00000, 90.00000);
Reply
#6

Como vocк copiou a stock ? Upa no pastebin, aqui vai ativar emoji.
Reply
#7

Amg, n tenho certeza mas eu acho q CreateDynamicObject n textuariza.
Use CreateObject.
Reply
#8

Lembrando que, se vocк usa Dynamic ao criar o objeto deve usar tambйm na hora de sentar uma textura.

Streamer Plugin

PHP код:
new MaterialLS[24];
MaterialLS[0] = CreateDynamicObject(16491286.38794, -1655.2630613.398000.000000.00000270.00000);
MaterialLS[1] = CreateDynamicObject(16491286.39160, -1659.6866513.408700.000000.0000090.00000);
MaterialLS[2] = CreateDynamicObject(16491286.38367, -1659.6872616.625700.000000.00000270.00000);
MaterialLS[3] = CreateDynamicObject(16491286.38367, -1659.6872619.945800.000000.00000270.00000);
MaterialLS[4] = CreateDynamicObject(16491286.38367, -1659.6872613.308700.000000.00000270.00000);
MaterialLS[5] = CreateDynamicObject(16491286.39160, -1659.6866516.726600.000000.0000090.00000);
MaterialLS[6] = CreateDynamicObject(16491286.39160, -1659.6866520.046100.000000.0000090.00000);
MaterialLS[7] = CreateDynamicObject(16491286.40686, -1655.2814913.408700.000000.0000090.00000);
MaterialLS[8] = CreateDynamicObject(16491286.40686, -1655.2814916.716090.000000.0000090.00000);
MaterialLS[9] = CreateDynamicObject(16491286.40686, -1655.2814919.990610.000000.0000090.00000);
MaterialLS[10] = CreateDynamicObject(16491286.38794, -1655.2630616.675000.000000.00000270.00000);
MaterialLS[11] = CreateDynamicObject(16491286.38794, -1655.2630619.997000.000000.00000270.00000);
MaterialLS[12] = CreateDynamicObject(16491286.40686, -1650.8415516.736100.000000.0000090.00000);
MaterialLS[13] = CreateDynamicObject(16491286.40686, -1650.8415519.964650.000000.0000090.00000);
MaterialLS[14] = CreateDynamicObject(16491286.38794, -1650.8431416.715000.000000.00000270.00000);
MaterialLS[15] = CreateDynamicObject(16491286.38794, -1650.8431419.960040.000000.00000270.00000);
MaterialLS[16] = CreateDynamicObject(16491286.38794, -1647.9030813.417300.000000.00000270.00000);
MaterialLS[17] = CreateDynamicObject(16491286.40686, -1646.4815716.716100.000000.0000090.00000);
MaterialLS[18] = CreateDynamicObject(16491286.40686, -1646.4815719.989100.000000.0000090.00000);
MaterialLS[19] = CreateDynamicObject(16491286.40686, -1647.9014913.408700.000000.0000090.00000);
MaterialLS[20] = CreateDynamicObject(16491286.38794, -1646.4231016.735000.000000.00000270.00000);
MaterialLS[21] = CreateDynamicObject(16491286.38794, -1646.4231020.034500.000000.00000270.00000);
MaterialLS[22] = CreateDynamicObject(16491286.38794, -1643.5030513.417300.000000.00000270.00000);
MaterialLS[23] = CreateDynamicObject(16491286.40686, -1643.4814513.408700.000000.0000090.00000);
for(new 
isizeof(MaterialLS); i++)
{
    
SetDynamicObjectMaterial(MaterialLS[i], 03922"bistro""StainedGlass"0xFFFFFFFF);

Reply
#9

Consegui rapaziada, Obrigadгo ai pra quem comento aqui vlw....


Код:
stock CreateObjectJanelaBancoLS(model, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
{
    new obj = CreateDynamicObject(model, x, y, z, rx, ry, rz);
    SetDynamicObjectMaterial(obj, 0, 1649, "wglass", "carshowwin2", 0xFFFFFFFF);
    return obj;
}

CreateObjectJanelaBancoLS(1649, 1286.38794, -1655.26306, 13.39800,   0.00000, 0.00000, 270.00000);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)