28.07.2011, 17:37
If you for example see a code like this:
That is useless if you have defined MAX_PLAYERS the correct way, because it starts counting from 0 so that + 1 is not needed.
It is useful in some cases, for example:
You can use the NO_TEAM(or something like that) define instead, but I was just giving an example.
pawn Код:
new gPlayerRank[ MAX_PLAYERS + 1 ];
It is useful in some cases, for example:
pawn Код:
#define NUMBER_OF_TEAMS 2
CMD:removemyteam( playerid, params[ ] ) {
SetPlayerTeam( playerid, NUMBER_OF_TEAMS + playerid + 1 );
return 1;
}