[INFO]MODE_GLOBAL
#1

Can you tell me what changes this function

Код:
ShowPlayerMarkers(PLAYER_MARKERS_MODE_GLOBAL);
and

Код:
ShowPlayerMarkers(1);
Reply
#2

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

and then the same thing

Код:
ShowPlayerMarkers(1);
?
Reply
#4

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 Код:
ShowPlayerMarkers(1);
pawn Код:
#define PLAYER_MARKERS_MODE_GLOBAL (1)
is what makes 'PLAYER_MARKERS_MODE_GLOBAL' equal to 1.
Reply
#5

thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)