25.01.2013, 10:37
Useful plugin, Thanks!
[17:14:39]: Server crash caused by native CallLocalFunction() called at address 0xA1E4 in 'gamemodes/xxx.amx' [17:14:39]: Call stack (most recent call first): [17:14:39]: 0x0000992c() [17:14:39]: 0x0018c23c() [17:14:39]: public Streamer_OnPlayerConnect()
Streamer_AppendArrayData(STREAMER_TYPE_3D_TEXT_LABEL, HouseData[pickupid][E_HOUSE_LABEL], data(?), PlayerName(playerid));
UpdateDynamic3DTextLabelText(Text3D:id, color, const text[]);
What's wrong with this one:
Код:
UpdateDynamic3DTextLabelText(Text3D:id, color, const text[]); |
public OnGameModeInit()
{
Streamer_VisibleItems(STREAMER_TYPE_OBJECT, 800);
}
public OnPlayerDeath(playerid, killerid, reason)
{
Kick(playerid);
}
AttachDynamicObjects( object1, object2, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:RotX, Float:RotY, Float:RotZ, SyncRotation = 1);
dcmd_cptest(playerid, params[]) { new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); new cp = CreateDynamicRaceCP(type, x, y, z, nextx, nexty, nextz, size, RACE_VW, -1, playerid, 300.0); new str[250]; format(str, sizeof(str), "createCP(%i, %f, %f, %f, %f, %f, %f, %f, %i, %i, %i, %f);", type, x, y, z, nextx, nexty, nextz, size, RACE_VW, -1, playerid, 300.0); SendClientMessage(playerid, 0xCC00CCFF, str); if (IsValidDynamicRaceCP(cp)) { SendClientMessage(playerid, 0xCC00CCFF, "Valid"); } else { SendClientMessage(playerid, 0xCC00CCFF, "Invalid"); } }
new Text3D:Driver3DText[MAX_PLAYERS];
//
Streamer_SetIntData(STREAMER_TYPE_3D_TEXT_LABEL,Driver3DText[playerid],E_STREAMER_WORLD_ID,MAX_PLAYERS+1);
*** Streamer_SetIntData: Invalid data specified
I set the draw distance and streaming distance to 1500.0 on the screenshot, CellDistance was 1501.0. The weather ID was 18. The weather is important too, because with other weathers you'll only be able to see up to 700 meters or so. It really depends on the weather. Weather IDs 13 to 18 should be allowing up to 1500 meters.
|
I realized if I use the following codes, the server will get crashed:-
pawn Код:
|
Код:
AttachDynamicObjects( object1, object2, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:RotX, Float:RotY, Float:RotZ, SyncRotation = 1); |
PHP код:
Код:
*** Streamer_SetIntData: Invalid data specified |
- Improved callback hooks in include file - Fixed draw distance bug with CreateDynamicObjectEx - Fixed area detection bug when a player is moving at a high velocity - Made objects update automatically when EditDynamicObject is called - Made moving objects update automatically when GetDynamicObjectPos and GetDynamicObjectRot are called |
It's important to note that if the cell distance is set higher than the object's streaming distance, then the object will still be confined to a single cell. The default cell size is 300.0, and only the current cell and adjacent cells are accessed on each update, so that would mean that the object's true streaming distance is a maximum of 600.0 rather than 1500.0. If the streaming distance is higher than the cell distance (which, by default, is 600.0), then the object will be placed in the global cell and will be visible anywhere on the map. However, as I've noted in the first post, this should be done sparingly since the global cell does not benefit from spatial indexing.
|