edit dynamic object error
#10

It's a Dynamic object, therefore you need to use the Dynamic functions.

INCORRECT:
Код:
public OnPlayerEditDynamicObject(playerid, STREAMER_TAG_OBJECT objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
{
    SetObjectPos(objectid, x, y, z);
    SetObjectRot(objectid, rx, ry, rz);
 
    SCMf(playerid, COLOR_RED, "xyz: %f/%f/%f, rxyz: %f %f %f", x, y, z, rx, ry, rz);
 
    return 1;
}
CORRECT:
Код:
public OnPlayerEditDynamicObject(playerid, STREAMER_TAG_OBJECT objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
{
    SetDynamicObjectPos(objectid, x, y, z);
    SetDynamicObjectRot(objectid, rx, ry, rz);
 
    SCMf(playerid, COLOR_RED, "xyz: %f/%f/%f, rxyz: %f %f %f", x, y, z, rx, ry, rz);
 
    return 1;
}
Reply


Messages In This Thread
edit dynamic object error - by ShadowBlack - 20.06.2018, 21:40
Re: edit dynamic object error - by ShadowBlack - 22.06.2018, 18:59
Re: edit dynamic object error - by ShadowBlack - 22.06.2018, 21:42
Re: edit dynamic object error - by ShadowBlack - 23.06.2018, 14:46
Re: edit dynamic object error - by ShadowBlack - 25.06.2018, 14:00
Re: edit dynamic object error - by Sew_Sumi - 25.06.2018, 14:08
Re: edit dynamic object error - by taktaz - 25.06.2018, 14:34
Re: edit dynamic object error - by div - 25.06.2018, 15:01
Re: edit dynamic object error - by ShadowBlack - 25.06.2018, 15:28
Re: edit dynamic object error - by DaniceMcHarley - 25.06.2018, 15:45

Forum Jump:


Users browsing this thread: 1 Guest(s)