GetPlayerID(byname) bug
#2

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.
Reply


Messages In This Thread
GetPlayerID(byname) bug - by GospodinX - 02.06.2018, 17:44
Re: GetPlayerID(byname) bug - by iSpark - 02.06.2018, 18:14
Re: GetPlayerID(byname) bug - by Cell_ - 02.06.2018, 20:03
Re: GetPlayerID(byname) bug - by GTLS - 03.06.2018, 06:19

Forum Jump:


Users browsing this thread: 1 Guest(s)