Thread: nVault Tutorial
View Single Post
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 09-23-2016 , 03:48   Re: nVault Tutorial
Reply With Quote #76

Readability and maintainability. Just by sizing an array with MAX_PLAYERS + 1 (MAX_PLAYERS is 32, so +1 makes it 33), it gets self-documented, saying that array is intended for player data.

Always use named constants instead of "magic" numbers if possible, they make the code better.
klippy is offline