Re: Using filterscript, connect with GM? error 017: undefined symbol "EDITOR_OBJECT" -
Код:
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;
}