• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Plugin] Streamer
#5
(2021-05-25, 09:31 PM)SeeK Space Wrote: Average of 40 ~ 60 players, and I have at least 30 objects created by CreateObject, this also happens with CreateDynamic3DTextLabel (I don't have any global ones).
CreateObject()? For the streamer you would need CreateDynamicObject(). The first one is SAMP native and not part of the streamer plugin.
Text labels have nothing to do with objects. Even if you have reached the maximum amount of objects (which is 1000), text labels would still show and vice versa.

Keep in mind the streamer allows to create over 1000 objects, but even then only a maximum of 1000 objects can be shown (since that is still a SAMP limit).

Quote:I don't have any global ones
Objects created with CreateObject()? are global. As are 3D text labels if the 'playerid' parameter isn't specified (default value being -1: visible for all players).

Do some debugging and actually count the amount of objects and dynamic objects (and the 3D text labels) at the moment you are starting to have that issue of yours.
For example:

Code:
CMD:debug_countobjects(playerid)
{
??? new object_count;
??? for (new i; i < MAX_OBJECTS; i)
??? {
??????? if (IsValidObject(i))
??????? {
??????????? object_count;
??????? }
??? }
??? SendClientMessageEx(playerid, -1, "[DEBUG] Amount of objects: %i", object_count);

??? SendClientMessageEx(playerid, -1, "[DEBUG] Amount of cdynamic objects: %i ;; Visible objects: %i", Streamer_CountItems(STREAMER_TYPE_OBJECT), Streamer_GetVisibleItem(STREAMER_TYPE_OBJECT, playerid));
??? return 1;
}

If the returned values are within the SAMP limits at the moment you're having problems with it something else is going on.
  Reply


Messages In This Thread
Streamer - by SeeK Space - 2021-05-25, 02:09 AM
RE: Streamer - by Kwarde - 2021-05-25, 06:56 PM
RE: Streamer - by PutuSuhartawan - 2021-05-26, 05:44 PM
RE: Streamer - by SeeK Space - 2021-05-25, 09:31 PM
RE: Streamer - by Kwarde - 2021-05-27, 01:38 PM
RE: Streamer - by SeeK Space - 2021-05-28, 04:03 AM

Forum Jump: