public static void InitialItems(int CharID, int Class)
{
try
{
switch(Class)
{
case 10:
{
MySqlCommand Cmd = new MySqlCommand("INSERT INTO items(CharID, Position, ItemID, Plus, Minus, Enchant, Soc1, Soc2, Dura, MaxDura) VALUES(" + CharID + "," + 4 + "," + 410302 + "," + 0 + "," + 0 + "," + 0 + "," + 0 + "," + 0 + "," + 10 + "," + 10 + ")", DatabaseConnection.NewConnection());
Cmd.ExecuteNonQuery();
Cmd.Connection.Close();
Cmd.Dispose();
MySqlCommand Cmd2 = new MySqlCommand("INSERT INTO items(CharID, Position, ItemID, Plus, Minus, Enchant, Soc1, Soc2, Dura, MaxDura) VALUES(" + CharID + "," + 3 + "," + 132003 + "," + 0 + "," + 0 + "," + 0 + "," + 0 + "," + 0 + "," + 10 + "," + 10 + ")", DatabaseConnection.NewConnection());
Cmd2.ExecuteNonQuery();
Cmd2.Connection.Close();
Cmd2.Dispose();
break;
}
And until I know how to sort these four errors out I can not rebuild solution
Three are the same error (void and the two MySqlcommand) all three are saying Error 1 Expected class, delegate, enum, interface, or struct C:\Documents and Settings\alan\My Documents\CoEmu v2\CoEmu v2\CoEmu v2 GameServer\Database\Database.cs 142 23 CoEmu v2 GameServer
And fourth error is saying
Error 4 Type or namespace definition, or end-of-file expected C:\Documents and Settings\alan knight\My Documents\CoEmu v2\CoEmu v2\CoEmu v2 GameServer\Database\Database.cs 159 7 CoEmu v2 GameServer
Anybody know how I can sort this error otherwise I can not rebuild to equip fan and tower
And ids I have for fan and tower would be
201007 HeavenFan
201008 HeavenFan
201009 HeavenFan
202007 StarTower
202008 StarTower
202009 StarTower