Posts: 6,129
Threads: 36
Joined: Jan 2009
Macros can be words, which can be used to represent numbers - which in this case is what is being demonstrated. 'PLAYER_MARKERS_MODE_GLOBAL' is defined as 1 in 'a_samp.inc' (or 'a_players.inc'). Macros do a lot more, but I'm generally just helping you to understand what the macro is doing in this instance.
Posts: 6,129
Threads: 36
Joined: Jan 2009
Read what I said: 'PLAYER_MARKERS_MODE_GLOBAL' is defined as 1. 'PLAYER_MARKERS_MODE_GLOBAL'
is 1.
pawn Код:
ShowPlayerMarkers(PLAYER_MARKERS_MODE_GLOBAL);
is the exact same as
pawn Код:
#define PLAYER_MARKERS_MODE_GLOBAL (1)
is what makes 'PLAYER_MARKERS_MODE_GLOBAL' equal to 1.