Skip to content

Latest commit

 

History

History
99 lines (70 loc) · 2.79 KB

File metadata and controls

99 lines (70 loc) · 2.79 KB

SA:MP - DETUtils | Library limits

  • Here, you can learn more about library limits. Below, you can see a list of DETUtils includes and learn more about limits built into them.

Go back to home page...

Updates

  • In upcoming updates, some limits may be reduced or eventually removed. But, due to existing SA:MP limits, that is not possible in bright future.

Check open.mp official resources site for more information about SA:MP limits!

detutils.inc includes

Check all limits below:

d_commands.inc

Maximum function name

Include code:

#if !defined MAX_FUNC_NAME

#define MAX_FUNC_NAME (32)

#endif
  • This limits the number of characters in function name, if the number of characters in a certain function's name is larger than 32, then you will get an error. This is also a Pawn limit, which explains why I've added this definition to my script as well.

Maximum prefix length

Include code:

#define MAX_PREFIX_LENGTH 1
  • Unfortunately, prefix can only contain 1 character.

d_filequeries.inc

Maximum number of file queries

Include code:

#if !defined MAX_FILE_QUERIES

    #define MAX_FILE_QUERIES 1000

#endif
  • This limits the number of file queries that can be created. That's why I recomment to DELETE the player file queries when player disconnects.

d_properties.inc

Maximum number of created properties

Include code:

#if !defined MAX_PROPERTIES

#define MAX_PROPERTIES 300

#endif
  • This limits the maximum number of custom properties that can be created, if you attempt to create a property with ID 301, function will return 0 - also if you have DETUTILS_DEBUG_MODE enabled, server will get an ingame warning which tells everyone on the server that maximum number of created properties has been reached.

d_visual.inc

Maximum number of created dropped guns

Include code:

#if !defined MAX_DROPPED_GUNS

#define MAX_DROPPED_GUNS 2000

#endif
  • This limits the maximum number of created dropped gun objects. If you attempt to create a dropped gun with an ID 2001, function will return 0 - also if you have DETUTILS_DEBUG_MODE enabled, server will get an ingame warning which tells everyone on the server that maximum number of created dropped gun objects has been reached.

Maximum number of DM zones

Include code:

#define MAX_DM_ZONES 1000
  • This limits the number of DM zones that can be created.

d_mapeditor.inc

Maximum objects

Include code:

#define MAX_OBJECTS 1000
  • This limits the maximum number of created objects on the server. This is also a SA:MP limit.

d_faction.inc

Maximum factions

Include code:

#define MAX_FACTIONS 256
  • This limits the maximum number of created factions on the server.