MAX_PLAYER_NAME
#1

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 ?
Reply
#2

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
Reply
#3

Okay nevermind then, trying to reduce alota CPU
Reply
#4

Changing the number to 24 from the macro really wouldn't change anything.
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)