[Tutorial] Simple Personal Messages with blocking feature
#6

MAX_PLAYER_NAME is 24, MAX_PLAYERS is 500 (or 800). You use MAX_PLAYER_NAME for specifying the size for variables which involve a player name, for example, when you use GetPlayerName(), you would set the size to MAX_PLAYER_NAME.

For creating arrays which should work for all players, you use MAX_PLAYERS.

At this rate, only ID 0-23 have access to PMEnabled and your array will trigger an out-of-bounds error if someone with an ID higher than 23 (IDs start at 0, not 1) would trigger this error.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)