Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //open connection
- if (this.OpenConnection(q) == true)
- {
- string query = "CREATE TABLE bz_bank ( player_id int(10) unsigned not null primary key auto_increment, player_name varchar(100) not null, bz_bux int(10) unsigned );";
- //create command and assign the query and connection from the constructor
- MySqlCommand cmd = new MySqlCommand(query, connection);
- //Execute command
- cmd.ExecuteNonQuery();
- //close connection
- this.CloseConnection(q);
- q.Enqueue(msg.arena("Tables saved.~"));
- }
Advertisement
Add Comment
Please, Sign In to add comment