30.04.2018, 18:39
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:
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; }