SA-MP Forums Archive
Material problem rep+ - 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: Material problem rep+ (/showthread.php?tid=614824)



Material problem rep+ - Mijata - 13.08.2016

Why i can't see texture on my selected object...
Код:
public OnGameModeInit()
{
	new object;
	object = CreateDynamicObject(2907, 186.48729, 2078.24878, 21.63369,   0.00000, 0.00000, 0.00000);
	SetObjectMaterial(object,0,2976,"gloopx","alien_liquid",0xFFFFFFFF);



Re: Material problem rep+ - Sanady - 13.08.2016

Hey, you are using wrong function for changing materials, SA-MP orignal have this:
Код:
 
SetObjectMaterial(...);
But streamer got this:
Код:
native SetDynamicObjectMaterial(STREAMER_TAG_OBJECT objectid, materialindex, modelid, const txdname[], const texturename[], materialcolor = 0);