05.02.2016, 13:23
Yes you can do with the following section:
Example:
Quote:
Data Manipulation: Код:
native Streamer_GetFloatData(type, STREAMER_ALL_TAGS id, data, &Float:result); native Streamer_SetFloatData(type, STREAMER_ALL_TAGS id, data, Float:value); native Streamer_GetIntData(type, STREAMER_ALL_TAGS id, data); native Streamer_SetIntData(type, STREAMER_ALL_TAGS id, data, value); native Streamer_GetArrayData(type, STREAMER_ALL_TAGS id, data, dest[], maxdest = sizeof dest); native Streamer_SetArrayData(type, STREAMER_ALL_TAGS id, data, const src[], maxsrc = sizeof src); native Streamer_IsInArrayData(type, STREAMER_ALL_TAGS id, data, value); native Streamer_AppendArrayData(type, STREAMER_ALL_TAGS id, data, value); native Streamer_RemoveArrayData(type, STREAMER_ALL_TAGS id, data, value); native Streamer_GetUpperBound(type); |
pawn Код:
#define AREA_TYPE_BUSINESS (0)
Streamer_SetIntData(STREAMER_TYPE_AREA, area_id, E_STREAMER_EXTRA_ID, AREA_TYPE_BUSINESS);
if (Streamer_GetIntData(STREAMER_TYPE_AREA, area_id, E_STREAMER_EXTRA_ID) == AREA_TYPE_BUSINESS )
{
// its business area
}