viewing paste Unknown #22412 | C#

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
case ":.slot":
 
                            Random rnd = new Random();
                            int intSlotA = rnd.Next(0, 4);
                            int intSlotB = rnd.Next(0, 4);
                            int intSlotC = rnd.Next(0, 4);
                            Console.WriteLine();
                            Console.WriteLine("---Debug Start--");
                            Console.WriteLine(intSlotA);
                            Console.WriteLine(intSlotB);
                            Console.WriteLine(intSlotC);
 
                            Console.WriteLine("--Debug Ende--");
                            Console.WriteLine();
 
                            string[] slot = new string[5];
                            slot[0] = "Pueree";
                            slot[1] = "Sushi";
                            slot[2] = "Mettbrötchen";
                            slot[3] = "Looser";
                            slot[4] = "Jackpott";
 
 
 
 
                            if (hostname[1] == AccessUser && AccessLevel >= 10)
                            {
                                
                                string strGewinn = "["+slot[intSlotA]+"] ["+slot[intSlotB]+"] ["+slot[intSlotC]+"]";
     
                                string strCMD = "PRIVMSG " + channel + " :das istein Test mit Leerzeichen";
 
 
                                if (slot[intSlotA] == "Jackpott" && slot[intSlotB] == "Jackpott" && slot[intSlotC] == "Jackpott")
                                {
                                    sendData("PRIVMSG", channel + " :Winner winner chickendinner, Jackpott!!! Jackpott!!! Jackpott!!!einseinself");
 
                                    slot[intSlotA] = null; slot[intSlotB] = "A"; slot[intSlotC] = "C";
 
                                }
                                else if (slot[intSlotA] == slot[intSlotB] && slot[intSlotA] == slot[intSlotC]) {
 
                                    sendData("PRIVMSG", channel + " :Slot : " + strGewinn + " YaY TriPPer!");
                                    slot[intSlotA] = null; slot[intSlotB] = "A"; slot[intSlotC] = "C";
                                }
 
 
                                else if (slot[intSlotA] == slot[intSlotB])
                                {
 
                                    sendData("PRIVMSG", channel + " :Slot : " + strGewinn + " YaY DoPpEl!");
 
                                    slot[intSlotA] = null; slot[intSlotB] = "A";
                                }
                                else if (slot[intSlotA] == slot[intSlotC])
                                {
                                    sendData("PRIVMSG", channel + " :Slot : " + strGewinn + " YaY DoPpEl!");
                                    slot[intSlotA] = null; slot[intSlotB] = "C";
                                }
 
                                else if (slot[intSlotB] == slot[intSlotC])
                                {
                                    sendData("PRIVMSG", channel + " :Slot : " + strGewinn + " YaY DoPpEl!");
                                    slot[intSlotB] = null; slot[intSlotC] = "C";
                                }
                                else
                                {
                                    sendData("PRIVMSG", channel + " :Slot : " + strGewinn);
                                }
 
                           
                            }
 
                            break;
Viewed 921 times, submitted by Guest.