22.06.2018, 21:32
A few critiques:
1. Use SQLite (Better than Dini and alternative to MySQL and INI file saving systems and NATIVE-LY implemented in SA-MP!!)
2. Use one array for all the object information and macros?
1. Use SQLite (Better than Dini and alternative to MySQL and INI file saving systems and NATIVE-LY implemented in SA-MP!!)
2. Use one array for all the object information and macros?
PHP Code:
#define GetObjectName(%0) \
gObjects[%0][E_OBJECT_NAME]
#define GetObjectModelID(%0) \
gObjects[%0][E_OBJECT_ID]
#define GetObjectDescription(%0) \
gObjects[%0][E_OBJECT_DESCRIPTION]
enum E_OBJECTS {
E_OBJECT_ID,
E_OBJECT_NAME[10],
E_OBEJCT_DESCRIPTION[100],
};
enum {
OBJECT_M4A1,
};
new gObjects[][E_OBJECTS] = {
{356, "M4A1", "The M4A1 is a fully automatic variant of the M4 carbine – a shorter and lighter variant of the M16."}
};