int deposited = int.Parse(msg[1]); stats[user].Cash = stats[user].Cash - deposited; stats[user].Bank = stats[user].Bank + deposited;
int deposited = 0; if (int.TryParse(msg[1], out deposited)) { stats[user].Cash -= deposited; stats[user].Bank += deposited; } else { throw some error to indicate the input was not valid }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)