SA-MP Forums Archive
[INFO]MODE_GLOBAL - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [INFO]MODE_GLOBAL (/showthread.php?tid=272446)



[INFO]MODE_GLOBAL - TheBluec0de - 28.07.2011

Can you tell me what changes this function

Код:
ShowPlayerMarkers(PLAYER_MARKERS_MODE_GLOBAL);
and

Код:
ShowPlayerMarkers(1);



Re: [INFO]MODE_GLOBAL - Calgon - 28.07.2011

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.


Re: [INFO]MODE_GLOBAL - TheBluec0de - 28.07.2011

and then the same thing

Код:
ShowPlayerMarkers(1);
?


Re: [INFO]MODE_GLOBAL - Calgon - 28.07.2011

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.


Re: [INFO]MODE_GLOBAL - TheBluec0de - 28.07.2011

thanks