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



SetObjectMaterial help - AMEENAMEEN - 03.05.2012

Alright so when i re texture all the idx'es of one object lets say 5 in tetxure editor ([HLF]Southclaw's Texture Workshop V1.0 )
then i add code ig not all changed textures will show only 1-2 changed idx'es will show not all 5 any idea why?
for an example
pawn Код:
CMD:test(playerid, params[])
{
    new yourobject3;
   
       
           yourobject3 = CreateObject(16149, -175.98, 1361.77, 40.97,   0.00, 0.00, 0.00);
           SetObjectMaterial(yourobject3, 0, 16149, "libertyhi", "Grass", 0); //this shows
       SetObjectMaterial(yourobject3, 2, 16149, "libertyfar", "Grass_128HV", 0); //this wont show
       SetObjectMaterial(yourobject3, 3, 16149, "libertyhi", "Grass", 0);  //this wont show
       SetObjectMaterial(yourobject3, 4, 16149, "libertyhi", "Grass", 0);  //this wont show

    return 1;
}



Re: SetObjectMaterial help - AMEENAMEEN - 04.05.2012

Bump


Re: SetObjectMaterial help - AMEENAMEEN - 04.05.2012

bump , sorry for bump


Re: SetObjectMaterial help - FalconX - 04.05.2012

You can't bump before 48 hours. Re-read the rules.

-FalconX


Re: SetObjectMaterial help - HDFord - 04.05.2012

try this
pawn Код:
CMD:test(playerid, params[])
{
    new yourobject3;
   
       
           yourobject3 = CreateObject(16149, -175.98, 1361.77, 40.97,   0.00, 0.00, 0.00);
           SetObjectMaterial(yourobject3, 0, 16149, "libertyhi", "Grass", 0); //this shows
           SetObjectMaterial(yourobject3, 2, 16149, "libertyfar", "Grass_128HV", 0); //this wont show
           SetObjectMaterial(yourobject3, 3, 16149, "libertyhi", "Grass", 0);  //this wont show
           SetObjectMaterial(yourobject3, 4, 16149, "libertyhi", "Grass", 0);  //this wont show

    return 1;
}



Re: SetObjectMaterial help - AMEENAMEEN - 05.05.2012

Quote:
Originally Posted by HDFord
Посмотреть сообщение
try this
pawn Код:
CMD:test(playerid, params[])
{
    new yourobject3;
   
       
           yourobject3 = CreateObject(16149, -175.98, 1361.77, 40.97,   0.00, 0.00, 0.00);
           SetObjectMaterial(yourobject3, 0, 16149, "libertyhi", "Grass", 0); //this shows
           SetObjectMaterial(yourobject3, 2, 16149, "libertyfar", "Grass_128HV", 0); //this wont show
           SetObjectMaterial(yourobject3, 3, 16149, "libertyhi", "Grass", 0);  //this wont show
           SetObjectMaterial(yourobject3, 4, 16149, "libertyhi", "Grass", 0);  //this wont show

    return 1;
}
What have you changed in this ?