SA-MP Forums Archive
[Ajuda] nгo tб setando texturaaa - 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: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] nгo tб setando texturaaa (/showthread.php?tid=632977)



nгo tб setando texturaaa - zGuigui2068 - 22.04.2017

PHP код:
public Ruaburacos1()
{
Ruadestruidas CreateDynamicObject(41461371.00000, -1582.3437512.45313,    0.000000.00000,  0.00000);
SetObjectMaterial(Ruadestruidas013871"egg_texts""easter_egg01"0xFFFFFFFF);
SetObjectMaterial(Ruadestruidas113871"egg_texts""easter_egg01"0xFFFFFFFF);
SetObjectMaterial(Ruadestruidas213871"egg_texts""easter_egg01"0xFFFFFFFF);
SetObjectMaterial(Ruadestruidas313871"egg_texts""easter_egg01"0xFFFFFFFF);
SetObjectMaterial(Ruadestruidas413871"egg_texts""easter_egg01"0xFFFFFFFF);
SetObjectMaterial(Ruadestruidas513871"egg_texts""easter_egg01"0xFFFFFFFF);
//SetObjectMaterial(Ruadestruidas[0], 3, 13871, "lahills_border1", "sw_rockgrassB2", 0);
//SetObjectMaterial(Ruadestruidas[0], 4, 13871, "lahills_border1", "sw_rockgrassB2", 0);
//SetObjectMaterial(Ruadestruidas[0], 5, 13871, "lahills_border1", "sw_rockgrassB2", 0);
Buracos[0] = CreateDynamicObject(36941404.57166, -1591.9426312.74263,   0.000000.000000.00000);
Buracos[1] = CreateDynamicObject(36941371.67346, -1584.8596212.75022,   0.000000.000000.00000);
Buracos[2] = CreateDynamicObject(36941336.20691, -1575.2362112.72780,   0.000000.000000.00000);

nгo faзo ideia do pq nгo tб setando textura no objeto


Re: nгo tб setando texturaaa - Adiiti - 22.04.2017

Se usa CreateDynamicObject tem que setar o SetDynamicObjectMaterial

Modo correto:

PHP код:
public Ruaburacos1() 

    
Ruadestruidas CreateDynamicObject(41461371.00000, -1582.3437512.45313,    0.000000.00000,  0.00000); 
    
SetDynamicObjectMaterial(Ruadestruidas013871"egg_texts""easter_egg01"0xFFFFFFFF); 
    
SetDynamicObjectMaterial(Ruadestruidas113871"egg_texts""easter_egg01"0xFFFFFFFF); 
    
SetDynamicObjectMaterial(Ruadestruidas213871"egg_texts""easter_egg01"0xFFFFFFFF); 
    
SetDynamicObjectMaterial(Ruadestruidas313871"egg_texts""easter_egg01"0xFFFFFFFF); 
    
SetDynamicObjectMaterial(Ruadestruidas413871"egg_texts""easter_egg01"0xFFFFFFFF); 
    
SetDynamicObjectMaterial(Ruadestruidas513871"egg_texts""easter_egg01"0xFFFFFFFF); 
    
//SetDynamicObjectMaterial(Ruadestruidas[0], 3, 13871, "lahills_border1", "sw_rockgrassB2", 0); 
    //SetDynamicObjectMaterial(Ruadestruidas[0], 4, 13871, "lahills_border1", "sw_rockgrassB2", 0); 
    //SetDynamicObjectMaterial(Ruadestruidas[0], 5, 13871, "lahills_border1", "sw_rockgrassB2", 0); 
    
Buracos[0] = CreateDynamicObject(36941404.57166, -1591.9426312.74263,   0.000000.000000.00000); 
    
Buracos[1] = CreateDynamicObject(36941371.67346, -1584.8596212.75022,   0.000000.000000.00000); 
    
Buracos[2] = CreateDynamicObject(36941336.20691, -1575.2362112.72780,   0.000000.000000.00000); 




Re: nгo tб setando texturaaa - NiloFreitasR1 - 22.04.2017

Como seus objetos estгo em CreateDynamicObject, vк se dб certo colocando:
PHP код:
SetDynamicObjectMaterial( ... ); 



Re: nгo tб setando texturaaa - zGuigui2068 - 23.04.2017

SetDynamicObjectMaterial(Ruadestruidas[0], 0, 13871, "lahills_border1", "sw_rockgrassB2", 0xFFFFFFFF);
SetDynamicObjectMaterial(Ruadestruidas[0], 1, 13871, "lahills_border1", "sw_rockgrassB2", 0xFFFFFFFF);
SetDynamicObjectMaterial(Ruadestruidas[0], 2, 13871, "lahills_border1", "sw_rockgrassB2", 0xFFFFFFFF);
SetDynamicObjectMaterial(Ruadestruidas[0], 3, 13871, "lahills_border1", "sw_rockgrassB2", 0xFFFFFFFF);
SetDynamicObjectMaterial(Ruadestruidas[0], 4, 13871, "lahills_border1", "sw_rockgrassB2", 0xFFFFFFFF);
SetDynamicObjectMaterial(Ruadestruidas[0], 5, 13871, "lahills_border1", "sw_rockgrassB2", 0xFFFFFFFF);

pq essa textura n pega ? eu qria uma textura de terraaa


Re: nгo tб setando texturaaa - Adiiti - 23.04.2017

Estб tudo como 0

Tente assim

PHP код:
SetDynamicObjectMaterial(Ruadestruidas[0], 013871"lahills_border1""sw_rockgrassB2"0xFFFFFFFF);
SetDynamicObjectMaterial(Ruadestruidas[1], 113871"lahills_border1""sw_rockgrassB2"0xFFFFFFFF);
SetDynamicObjectMaterial(Ruadestruidas[2], 213871"lahills_border1""sw_rockgrassB2"0xFFFFFFFF);
SetDynamicObjectMaterial(Ruadestruidas[3], 313871"lahills_border1""sw_rockgrassB2"0xFFFFFFFF);
SetDynamicObjectMaterial(Ruadestruidas[4], 413871"lahills_border1""sw_rockgrassB2"0xFFFFFFFF);
SetDynamicObjectMaterial(Ruadestruidas[5], 513871"lahills_border1""sw_rockgrassB2"0xFFFFFFFF);