Ich habe gerade folgendes aus dem Original Artikel entnehmen können.
ZitatAlles anzeigenNative Notes
- Use Streamer_UpdateEx to preload items before setting a player's position or to stream items under OnPlayerRequestClass.
- Virtual worlds, interiors, and players can only be modified or read
through the array data manipulation natives (Streamer_GetArrayData and
Streamer_SetArrayData, for example).- Here is an example of using the data manipulation natives (note the use of the definitions and the enumerator above):
pawn Code:Streamer_SetIntData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_MODEL_ID, 1225);
- Here is another example for data stored as arrays (virtual worlds, interiors, and players):
pawn Code:Streamer_AppendArrayData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_PLAYER_ID, playerid);
- To adjust an object's draw distance (added in SA-MP 0.3b), use
Streamer_SetFloatData with E_STREAMER_DRAW_DISTANCE. Alternatively, use
CreateDynamicObjectEx. An object's default draw distance can be set by
specifying 0.0.- To adjust a map icon's style (added in SA-MP 0.3c), use
Streamer_SetIntData with E_STREAMER_STYLE. Alternatively, use
CreateDynamicMapIconEx. Valid styles range from 0 to 3, and each map
icon's default style is 0.- Only circles and spheres may be used with the attach area natives.
- The points in CreateDynamicPolygon and CreateDynamicPolygonEx need to be specified as a sequence of ordered pairs (x1, y1, x2, y2, ..., xn, yn).
The number of elements in the array must be divisible by two for this
reason. The first point must also be equal to the last point to form a
closed path.- The number configurable in Streamer_CellDistance is used to
determine whether or not an item needs to be put in a cell for spatial
indexing purposes. The default value is 600.0. If an item's streaming
distance (or, in the case of areas, an item's size) exceeds that of the
cell distance, it will be streamed from any point on the map. For
example, if a map icon's streaming distance is set to 100.0, it will
only be visible if the player is in the same cell as the map icon or in
an adjacent cell (assuming the default cell distance of 600.0 has not
been changed). However, if the map icon's streaming distance is set to
1000.0, it will be visible no matter where the player is.- The number configurable in Streamer_CellSize is used to determine the size of each cell in the grid. The default value is 300.0.
- Note that Streamer_CellDistance and Streamer_CellSize rebuild the
grid each time they are called, so use them only when necessary. The
default values are also considered optimal, so in most cases, it is
recommended to simply leave these natives alone unless a specific need
arises.- Items can be grouped together using y_groups, which is part of the YSI library
Quelle : http://forum.sa-mp.com/showthread.php?t=102865
Wären eventuell auch von Bedeutung.