Texture error
#1

Help me dont work texture!
Код:
new krov[7];
new podsa[4];

///kafic

//pod
podsa[0] = CreateObject(19377, 1291.22156, -1867.69104, 12.49070,   0.00000, 90.00000, 0.00000);
podsa[1] = CreateObject(19377, 1301.72229, -1867.63147, 12.49070,   0.00000, 90.00000, 0.00000);
podsa[2] = CreateObject(19377, 1291.22900, -1877.32935, 12.49070,   0.00000, 90.00000, 0.00000);
podsa[3] = CreateObject(19377, 1301.72290, -1877.27039, 12.49070,   0.00000, 90.00000, 0.00000);
for(new i = 0; i < sizeof(podsa); i++)
{
	SetDynamicObjectMaterial(podsa[i], 0, 8954, "la_carp3", "sf_spray_floor2", 0xFFC801C8);
}
//kod ulaza
CreateObject(19362, 1303.34656, -1862.46082, 14.29110,   0.00000, 0.00000, 90.00000);
CreateObject(19362, 1288.71655, -1862.46082, 14.29110,   0.00000, 0.00000, 90.00000);
//staklo
CreateObject(19325, 1300.01794, -1862.46521, 14.01030,   0.00000, 0.00000, 90.00000);
CreateObject(19325, 1291.42688, -1862.46521, 14.01030,   0.00000, 0.00000, 90.00000);
//krov
krov[0] = CreateObject(19362, 1303.32788, -1863.10083, 16.79110,   0.00000, -40.00000, 90.00000);
krov[1] = CreateObject(19362, 1300.11694, -1863.10083, 16.79110,   0.00000, -40.00000, 90.00000);
krov[2] = CreateObject(19362, 1296.90686, -1863.10083, 16.79110,   0.00000, -40.00000, 90.00000);
krov[3] = CreateObject(19362, 1293.69385, -1863.10083, 16.79110,   0.00000, -40.00000, 90.00000);
krov[4] = CreateObject(19362, 1290.48181, -1863.10083, 16.79110,   0.00000, -40.00000, 90.00000);
krov[5] = CreateObject(19362, 1287.26880, -1863.10083, 16.79110,   0.00000, -40.00000, 90.00000);
for(new i = 0; i < sizeof(krov); i++)
{
	SetDynamicObjectMaterial(krov[i], 0, 5134, "lambloke", "genroof01_128", 0xFFFFFFFF);
}
//zidovi
CreateObject(19362, 1288.82202, -1876.02185, 14.29110,   0.00000, 0.00000, 90.00000);
CreateObject(19362, 1292.03198, -1876.02185, 14.29110,   0.00000, 0.00000, 90.00000);
CreateObject(19362, 1295.24194, -1876.01990, 14.29110,   0.00000, 0.00000, 90.00000);
CreateObject(19362, 1298.45288, -1876.01990, 14.29110,   0.00000, 0.00000, 90.00000);
CreateObject(19362, 1301.66284, -1876.01990, 14.29110,   0.00000, 0.00000, 90.00000);
CreateObject(19362, 1304.86987, -1876.01990, 14.29110,   0.00000, 0.00000, 90.00000);
CreateObject(19362, 1305.04224, -1864.12988, 14.29110,   0.00000, 0.00000, 180.00000);
CreateObject(19362, 1305.04224, -1867.33594, 14.29110,   0.00000, 0.00000, 180.00000);
CreateObject(19362, 1305.04224, -1870.54395, 14.29110,   0.00000, 0.00000, 180.00000);
CreateObject(19362, 1305.04224, -1873.73389, 14.29110,   0.00000, 0.00000, 180.00000);
CreateObject(19362, 1305.04224, -1876.92896, 14.29110,   0.00000, 0.00000, 180.00000);
CreateObject(19362, 1287.45496, -1864.01135, 14.29110,   0.00000, 0.00000, 180.00000);
CreateObject(19362, 1287.45496, -1867.22144, 14.29110,   0.00000, 0.00000, 180.00000);
CreateObject(19362, 1287.45496, -1870.43140, 14.29110,   0.00000, 0.00000, 180.00000);
CreateObject(19362, 1287.45496, -1873.61841, 14.29110,   0.00000, 0.00000, 180.00000);
CreateObject(19362, 1287.45496, -1876.83838, 14.29110,   0.00000, 0.00000, 180.00000);
//strop
CreateObject(19377, 1289.53076, -1867.12854, 15.83270,   0.00000, 90.00000, 0.00000);
CreateObject(19377, 1300.05481, -1867.12854, 15.83270,   0.00000, 90.00000, 0.00000);
CreateObject(19377, 1300.05481, -1876.75244, 15.83270,   0.00000, 90.00000, 0.00000);
CreateObject(19377, 1289.52954, -1876.75659, 15.83270,   0.00000, 90.00000, 0.00000);
Reply
#2

what is the #error ?
you have ?
Quote:

#include <streamer>

Reply
#3

Use either:
CreateObject -> SetObjectMaterial
or:
CreateDynamicObject -> SetDynamicObjectMaterial

Using one function with global object and one with dynamic won't work as the object IDs will probably differ.
Reply
#4

Don`t show me texture!
Reply
#5

Change this:
pawn Код:
SetDynamicObjectMaterial
With:
pawn Код:
SetObjectMaterial
if you create object with function 'CreateObject' you can't set material with 'SetDynamicObjectMaterial'
Reply
#6

Quote:
Originally Posted by J4Rr3x
Посмотреть сообщение
Change this:
pawn Код:
SetDynamicObjectMaterial
With:
pawn Код:
SetObjectMaterial
if you create object with function 'CreateObject' you can't set material with 'SetDynamicObjectMaterial'
Thanks i forgot that!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)