Add a bunch of constants to define max lengths (#566)
* Add constants for max IP and SteamID length * Change max authid length to 64 * Fix port typo * Add more defines * Remove max query length
This commit is contained in:
parent
f1f95425b6
commit
b4768a3d1d
@ -55,10 +55,45 @@ public stock const NULL_STRING[1];
|
||||
public stock const Float:NULL_VECTOR[3];
|
||||
|
||||
/**
|
||||
* The maximum buffer size required to store a clients name.
|
||||
* The maximum buffer size required to store a client's name.
|
||||
*/
|
||||
#define MAX_NAME_LENGTH 32
|
||||
|
||||
/**
|
||||
* The maximum buffer size required to store a client's IP address without a port.
|
||||
*/
|
||||
#define MAX_IP_LENGTH 16
|
||||
|
||||
/**
|
||||
* The maximum buffer size required to store a client's IP address with a port.
|
||||
*/
|
||||
#define MAX_IP_WITH_PORT_LENGTH 22
|
||||
|
||||
/**
|
||||
* The maximum buffer size required to store a client's AuthID.
|
||||
*/
|
||||
#define MAX_AUTHID_LENGTH 64
|
||||
|
||||
/**
|
||||
* The maximum buffer size required to store a resource path.
|
||||
*/
|
||||
#define MAX_RESOURCE_PATH_LENGTH 64
|
||||
|
||||
/**
|
||||
* The maximum buffer size that can be displayed in a MOTD.
|
||||
*/
|
||||
#define MAX_MOTD_LENGTH 1536
|
||||
|
||||
/**
|
||||
* The maximum size accepted by the user info buffer.
|
||||
*/
|
||||
#define MAX_USER_INFO_LENGTH 256
|
||||
|
||||
/**
|
||||
* The maximum buffer size that can be displayed in a menu.
|
||||
*/
|
||||
#define MAX_MENU_LENGTH 512
|
||||
|
||||
/**
|
||||
* π
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user