Originally Posted by mroq98
Can I add new variables to Enumerator?
Becouse I try like this:
Код:
CMD:setperm(playerid, params[])
{
if(isnull(params)) return SendClientMessage(playerid, -1, "Tip: /setperm [value]");
new string[128], Float:m_x,Float:m_y,Float:m_z,Float:m_rx,Float:m_ry,Float:m_rz, permission, sampid = PlayerData[playerid][pObjectEdit];
//Result
permission = Streamer_GetIntData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_PERM);
Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_X, m_x);
Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_Y, m_y);
Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_Z, m_z);
Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_RX, m_rx);
Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_RY, m_ry);
Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_RZ, m_rz);
format(string,sizeof(string),"Result [ sampid: %d, perm: %d, pos: %0.1f %0.1f %0.1f %0.1f %0.1f %0.1f ]", sampid,permission,m_x,m_y,m_z,m_rx,m_ry,m_rz);
SendClientMessage(playerid, -1, string);
//Update
Streamer_SetIntData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_PERM, strval(params));
permission = Streamer_GetIntData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_PERM);
Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_X, m_x);
Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_Y, m_y);
Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_Z, m_z);
Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_RX, m_rx);
Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_RY, m_ry);
Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_RZ, m_rz);
format(string,sizeof(string),"Update [ sampid: %d, perm: %d, pos: %0.1f %0.1f %0.1f %0.1f %0.1f %0.1f ]", sampid,permission,m_x,m_y,m_z,m_rx,m_ry,m_rz);
SendClientMessage(playerid, -1, string);
return 1;
}
Код:
enum
{
E_STREAMER_ATTACHED_OBJECT,
E_STREAMER_ATTACHED_PLAYER,
E_STREAMER_ATTACHED_VEHICLE,
E_STREAMER_ATTACH_OFFSET_X,
E_STREAMER_ATTACH_OFFSET_Y,
E_STREAMER_ATTACH_OFFSET_Z,
E_STREAMER_ATTACH_R_X,
E_STREAMER_ATTACH_R_Y,
E_STREAMER_ATTACH_R_Z,
E_STREAMER_ATTACH_X,
E_STREAMER_ATTACH_Y,
E_STREAMER_ATTACH_Z,
E_STREAMER_COLOR,
E_STREAMER_DRAW_DISTANCE,
E_STREAMER_EXTRA_ID,
E_STREAMER_INTERIOR_ID,
E_STREAMER_MAX_X,
E_STREAMER_MAX_Y,
E_STREAMER_MAX_Z,
E_STREAMER_MIN_X,
E_STREAMER_MIN_Y,
E_STREAMER_MIN_Z,
E_STREAMER_MODEL_ID,
E_STREAMER_MOVE_R_X,
E_STREAMER_MOVE_R_Y,
E_STREAMER_MOVE_R_Z,
E_STREAMER_MOVE_SPEED,
E_STREAMER_MOVE_X,
E_STREAMER_MOVE_Y,
E_STREAMER_MOVE_Z,
E_STREAMER_NEXT_X,
E_STREAMER_NEXT_Y,
E_STREAMER_NEXT_Z,
E_STREAMER_PLAYER_ID,
E_STREAMER_R_X,
E_STREAMER_R_Y,
E_STREAMER_R_Z,
E_STREAMER_SIZE,
E_STREAMER_STREAM_DISTANCE,
E_STREAMER_STYLE,
E_STREAMER_SYNC_ROTATION,
E_STREAMER_TEST_LOS,
E_STREAMER_TYPE,
E_STREAMER_WORLD_ID,
E_STREAMER_X,
E_STREAMER_Y,
E_STREAMER_Z,
E_STREAMER_GATE_X,
E_STREAMER_GATE_Y,
E_STREAMER_GATE_Z,
E_STREAMER_GATE_RX,
E_STREAMER_GATE_RY,
E_STREAMER_GATE_RZ,
E_STREAMER_GATE_PERM,
E_STREAMER_GATE_USE
}
But this don't change value. :O
|