Exception: A Player with the specified name does not exist.

Topics: Admin Tool, Developers
Jan 19, 2012 at 5:06 PM

Hi,

Sometimes BF3Rcon.NET throws an error in ... PlayerCollection -> public Player this[string name]-> throw new ArgumentException("A Player with the specified name does not exist.", "name");

This method calls the Player method when it throws the exception:

case "player.onKill":
Player victim = client.Players[words[2]];

I think it might be a combination of (in this instance) a player getting killed, while he was leaving the server.

My question is: How should we handle this exception? ... because it crashes the program, when it occurs.

 

:)

Mojo

Coordinator
Jan 20, 2012 at 5:17 PM

Actually I thought I already fixed that D:
Looks like I forgot.

I just updated the code :D

Jan 20, 2012 at 5:52 PM

Great :) ... thanks!!