02.06.2018, 18:14
There should be a ! before strcmp.
strcmp returns value 0 if the strings match.
And the loop should not be <= MAX_PLAYERS. The playerid starts from 0 and ends at MAX_PLAYERS - 1.
That's how the indexing is done.
strcmp returns value 0 if the strings match.
And the loop should not be <= MAX_PLAYERS. The playerid starts from 0 and ends at MAX_PLAYERS - 1.
That's how the indexing is done.