2020-12-15, 11:07 PM (This post was last modified: 2020-12-15, 11:08 PM by Radical.)
I have 10,300 dynamic objects, some of which disappear after 24 hours.
Game mode runs on a vps with 1 GB of RAM.
The problem is the lack of RAM or what?
Using Pawn.CMD?
If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
I've faced this error a few times, avoiding it comes down to following two key practices:
- Always check if a dynamic object is valid with IsValidDynamicObject(objectid) before destroying it.
- When destroying an object, ALWAYS set the variable which held it to INVALID_OBJECT_ID to avoid collisions with newly created objects in the future.