24.09.2017, 10:10
Ok, nevermind.
So your problem is in OnPlayerEditDynamicObject, lines:
GetDynamicObjectPos(objectid, OX, OY, OZ);
GetDynamicObjectRot(objectid, ORX, ORY, ORZ);
It is taking the old position.
You have to use variables built in callback - OnPlayerEditDynamicObject(playerid, objectid, response, Float, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
for new position.
So, use x, y, z, rx, ry, rz instead of your ox, oy, oz etc.
So your problem is in OnPlayerEditDynamicObject, lines:
GetDynamicObjectPos(objectid, OX, OY, OZ);
GetDynamicObjectRot(objectid, ORX, ORY, ORZ);
It is taking the old position.
You have to use variables built in callback - OnPlayerEditDynamicObject(playerid, objectid, response, Float, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
for new position.
So, use x, y, z, rx, ry, rz instead of your ox, oy, oz etc.