Posts: 74
Threads: 14
Joined: Aug 2010
Reputation:
0
Instead of using MAX_PLAYER_NAME can i use [24]; as 24 is the max limit of player name allowed, will it use less CPU or stay the same ?
Posts: 2,856
Threads: 6
Joined: Jun 2007
Reputation:
0
if you look in your a_samp.inc you will find out that MAX_PLAYER_NAME is defined as (24) and you would change nothing at all
Posts: 74
Threads: 14
Joined: Aug 2010
Reputation:
0
Okay nevermind then, trying to reduce alota CPU
Posts: 6,129
Threads: 36
Joined: Jan 2009
Changing the number to 24 from the macro really wouldn't change anything.
Posts: 900
Threads: 21
Joined: Jan 2007
Reputation:
0
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.