Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Threading;
- using MySql.Data.MySqlClient;
- namespace CCRandomizer
- {
- class Program
- {
- static void Main(string[] args)
- {
- string conStr = "server=192.168.0.23;uid=kartershop;pwd=ShQP7U2TrEVLzUFA;database=kartershop;port=3306;Charset=utf8";
- MySqlConnection conn = new MySqlConnection(conStr);
- conn.Open();
- //connection doesn't work cause I don't have the database url D:
- string cleanCCTable = ""; //table cleaning for every week xDD
- string getPlayersCommand = "SELECT COUNT(*) FROM Users WHERE CurrentRoom = 1";
- Console.WriteLine("Welcome to the CC Generator. Please wait while we generate a CC for you!");
- var class1 = "150cc";
- var class2 = "200cc";
- var class3 = "Mirror";
- Random rand = new Random();
- var classchosen = rand.Next(0, 3);
- Thread.Sleep(5500);
- if (classchosen == 0)
- {
- Console.WriteLine("The CC chosen is " + class1);
- Thread.Sleep(5500);
- }
- else if (classchosen == 1)
- {
- Console.WriteLine("The CC chosen is " + class2);
- Thread.Sleep(5500);
- }
- else if (classchosen == 2)
- {
- Console.WriteLine("The CC chosen is " + class3);
- Thread.Sleep(5500);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement