Texture/materials help.
#1

It should be like this?:

Код:
SetObjectMaterial(CreateObject(6962, 2116.45801, -1912.28955, 18.98432,   0.00000, 0.00000, 0.00000, 0, 18202, "w_towncs_t", "plaintarmac1", 0xFFFFFFFF);
Reply
#2

Create a global variable:
pawn Код:
new objectid;
And where you want to create the object, and set it's material, declare that variable as the CreateObject code, and use that instead.
pawn Код:
objectid = CreateObject( ... );
SetObjectMaterial(objectid, ... );
Explained in the wiki aswell:
https://sampwiki.blast.hk/wiki/SetObjectMaterial
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)