Quote:
Originally Posted by EnzoMetlc
Please optimize...
pawn Код:
#define SetPlayerTeamFromClass(%1,%2) gTeam[%1] = (%2 == 0) ? (TEAM_BLUE) : (TEAM_RED) #define SetPlayerToTeamColour(%1,%2) SetPlayerColor[%1] = (%2 == 0) ? (TEAM_BLUECOLOR) : (TEAM_REDCOLOR)
+3.
|
What is the obsession with macros? It's just easier to write a function for readability which is the case here, since it's a TUTORIAL. (Implying it's for aspiring and probably clueless scripters)