03.04.2011, 15:45
Well if the array holds the name and you compare them with strcmp it should work. The name in the array isn't the same as the one passed to the function "GetPlayerID" else it would return the id the loop stops on. Or -1 if no name was matched. It should never return zero unless the name of id 0 is matched.