SetDynamicObjectMaterial help
#4

Well, it worked using strval to some degree, however if I input a valid data (0xFF0000FF -> dark blue) the object gets spawned with the correct texture but with the default color

THe new code looks like:

Код:
CMD:testcmd1(playerid, params[] )
{
	new color[12];
	new colored;
    if (sscanf(params, "s[12]", color))
	    return SendSyntaxMessage(playerid, "/testcmd [color]");
	
	new Float:px, Float:py, Float:pz;
	GetPlayerPos(playerid, px, py, pz);
	colored = strval(color);
	new test  = CreateDynamicObject(19462, px, py, pz, 0.0, 0.0, 0.0);
	SetDynamicObjectMaterial(test, 0, 12979, "sw_block9", "sw_wall03", colored);
	return 1;
}
Reply


Messages In This Thread
SetDynamicObjectMaterial help - by Obsidian - 30.04.2018, 15:48
Re: SetDynamicObjectMaterial help - by Pottus - 30.04.2018, 16:30
Re: SetDynamicObjectMaterial help - by git - 30.04.2018, 16:36
Re: SetDynamicObjectMaterial help - by Obsidian - 30.04.2018, 18:39
Re: SetDynamicObjectMaterial help - by Pottus - 30.04.2018, 19:14
Re: SetDynamicObjectMaterial help - by Obsidian - 30.04.2018, 20:12
Re: SetDynamicObjectMaterial help - by Obsidian - 01.05.2018, 13:48
Re: SetDynamicObjectMaterial help - by RoboN1X - 01.05.2018, 15:28

Forum Jump:


Users browsing this thread: 1 Guest(s)