Natives (Data Manipulation) RU - samp-incognito/samp-streamer-plugin GitHub Wiki
Главная ▸ Функции ▸ Операции с данными
Streamer_GetFloatData(type, id, data, &Float:result)
- Parameters:
type: The item type.id: The item ID.data: The item data (from the enumerator).result: The stored result.- Returns:
0on failure,1on success.
Gets float data from an item.
Streamer_SetFloatData(type, id, data, Float:value)
- Parameters:
type: The item type.id: The item ID.data: The item data (from the enumerator).value: The set value.- Returns:
0on failure,1on success.
Sets float data for an item.
Streamer_GetIntData(type, id, data)
- Parameters:
type: The item type.id: The item ID.data: The item data (from the enumerator).- Returns:
- The integer data.
Gets integer data from an item.
Streamer_SetIntData(type, id, data, value)
- Parameters:
type: The item type.id: The item ID.data: The item data (from the enumerator).value: The set value.- Returns:
0on failure,1on success.
Sets integer data for an item.
Streamer_GetArrayData(type, id, data, dest[], maxdest = sizeof dest)
- Parameters:
type: The item type.id: The item ID.data: The item data (from the enumerator).dest[]: The stored array data.maxdest: The size of the stored array data (size ofdestby default).- Returns:
0on failure,1on success.
Gets array data for an item.
Streamer_SetArrayData(type, id, data, dest[], maxdest = sizeof dest)
- Parameters:
type: The item type.id: The item ID.data: The item data (from the enumerator).dest[]: The set array data.maxdest: The size of the set array data (size ofdestby default).- Returns:
0on failure,1on success.
Sets array data for an item.
Streamer_IsInArrayData(type, id, data, value)
- Parameters:
type: The item type.id: The item ID.data: The item data (from the enumerator).value: The value to search in the array.- Returns:
0or1.
Returns whether a value is in an array for an item.
Streamer_AppendArrayData(type, id, data, value)
- Parameters:
type: The item type.id: The item ID.data: The item data (from the enumerator).value: The value to append to the array.- Returns:
0on failure,1on success.
Appends a value to an array for an item.
Streamer_RemoveArrayData(type, id, data, value)
- Parameters:
type: The item type.id: The item ID.data: The item data (from the enumerator).value: The value to remove from the array.- Returns:
0on failure,1on success.
Removes a value from an array for an item.
Streamer_GetUpperBound(type)
- Parameters:
type: The item type.- Returns:
- The upper bound.
Gets the upper bound (highest ID) for an item type.
- This differs from
Streamer_CountItemsin that it returns the highest ID and not just the number of items that have been created. This makes it useful for iteration purposes.