SetDynamicObjectMaterial help
#1

Hi,

I have some problems with a command where I test the output of specific commands.

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

}
When compiled, I get the following error:
Код:
error 035: argument type mismatch (argument 6)
It's a type missmatch but somehow I have to pass the variable I get so I can create the object. Anyway, if someone knows how to do this properly, I would love to hear him out.
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: 2 Guest(s)