01.06.2015, 14:29
(
Последний раз редактировалось Hargrave; 12.07.2015 в 16:17.
)
DELETE
public OnPlayerEditDynamicObject(playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz) { new Editor_Object; EDITOR_OBJECT[objectid][OBJ_X] = x; EDITOR_OBJECT[objectid][OBJ_Y] = y; EDITOR_OBJECT[objectid][OBJ_Z] = z; EDITOR_OBJECT[objectid][OBJ_RX] = rx; EDITOR_OBJECT[objectid][OBJ_RY] = ry; EDITOR_OBJECT[objectid][OBJ_RZ] = rz; SetDynamicObjectPos(objectid,x,y,z); SetDynamicObjectRot(objectid,rx,ry,rz); new EDITOR_QUERY[256]; format(EDITOR_QUERY, sizeof(EDITOR_QUERY), "UPDATE `OBJECTS` SET `X`='%f', `Y`='%f', `Z`='%f', `RX`='%f', `RY`='%f', `RZ`='%f' WHERE `ID`=%d", EDITOR_OBJECT[objectid][OBJ_X], EDITOR_OBJECT[objectid][OBJ_Y], EDITOR_OBJECT[objectid][OBJ_Z], EDITOR_OBJECT[objectid][OBJ_RX], EDITOR_OBJECT[objectid][OBJ_RY], EDITOR_OBJECT[objectid][OBJ_RZ], EDITOR_OBJECT[objectid][OBJ_DB_ID]); db_free_result(db_query(EDITOR_DATABASE, EDITOR_QUERY)); return 1; }