Some problems with multiplayer

I am using p2p for multiplayer and it works just fine with 3 players but the second i get a 4th one in some screens doesn’t detect inputs from some and etc. What do i do???

Maybe you hardcoded a maximum of three players somewhere, and the 4th player is registered as one of the first three players, creating conflicts?
Hard to say without more details.