30.04.2018, 15:48
Hi,
I have some problems with a command where I test the output of specific commands.
When compiled, I get the following error:
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.
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;
}
Код:
error 035: argument type mismatch (argument 6)

