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