周りを見回して、ブレークに到達できないことを意味することを収集しましたが、どのように到達できないのか、何に到達しようとしているのかわかりません。エラーが発生するコードは次のとおりです。ブレークに到達できるようにするために何を追加すればよいか、誰かが教えてくれるかもしれません。
#region :buy <item>
case "buy":
string Item = stringManager.wrapParameters(args, 1);
if (Item == "bread")
{
int foodfunds;
int myfood;
int foodCheck;
int creditCheck;
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
foodfunds = dbClient.getInt("SELECT credits FROM users WHERE name = '" + _Username + "'");
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
myfood = dbClient.getInt("SELECT food FROM users WHERE name = '" + _Username + "'");
if (foodfunds < 10)
{
Room.sendData("BK" + "Not enough cash.");
}
if (_roomID != 193)
{
sendData("BK" + "You must be in the supermarket to buy bread");
}
else
{
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
dbClient.runQuery("UPDATE users SET food = food + 1 WHERE name = '" + _Username + "'");
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
foodCheck = dbClient.getInt("SELECT food FROM users WHERE name = '" + _Username + "'");
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
dbClient.runQuery("UPDATE users SET credits = credits - 10 WHERE name = '" + _Username + "'");
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
creditCheck = dbClient.getInt("SELECT credits FROM users WHERE name = '" + _Username + "'");
Room.sendShout(roomUser, "*Buys a loaf of bread and stashes in bag*");
Room.sendSaying(roomUser, "(Now have: " + foodCheck + " loaves of bread)");
Room.sendSaying(roomUser, "(Now have: " + creditCheck + " credits left)");
}
if (myfood > 255)
{
Room.sendData("BK" + "You cannot carry anymore food!");
}
break;
}
#endregion