Multiplayer extension problem

It seems the “On button for player” returns a sprite assigned to the player and NOT the player as a number, but i need it as a number. What am i going to have to do?