10.09.2010, 16:44
A #define is processed in compile-time. That is, when you press the compile button, the script searches every MAX_PLAYER_NAME in your script, and replaces it with a 24. Afterwards, it compiles.
It is advised to use the macros, because in case any sa-mp limit changes in a future version (for example, sa-mp might end up supporting a max player name of 30 characters), you would just need to recompile your script, and not change every single number in your whole script.
It is advised to use the macros, because in case any sa-mp limit changes in a future version (for example, sa-mp might end up supporting a max player name of 30 characters), you would just need to recompile your script, and not change every single number in your whole script.