-
Posts
72 -
Joined
-
Last visited
Awards
This user doesn't have any awards
About BlueDragon
- Birthday Nov 20, 1999
Contact Methods
-
Twitter
https://twitter.com/BlueDragon022
- Website URL
Profile Information
-
Gender
Male
-
Location
England
-
Interests
Computery stuff
-
Biography
Currently working on some pc games to be released
System
-
CPU
Amd fx-8350
-
Motherboard
Gigabyte 990FXA-UD3
-
RAM
Corsair vengence 16gb (2x8gb) 1600mHz
-
GPU
msi r9 290x lightning
-
Case
Cooler master cosmos se
-
Storage
Intel 320 series 120GB SSD + WD 2TB green
-
PSU
EVGA SuperNOva B2 850W
-
Display(s)
AOC G2460FQ
-
Operating System
Ubuntu linux
Recent Profile Visitors
600 profile views
BlueDragon's Achievements
-
Aptana studio 3 is good... It's sorta like eclipse but designed for web languages. As well as this it also has integrated FTP uploading to your web server which I find useful.
-
I'm currently using a msi r9 290x lighting graphics card and I would love to upgrade to the new graphics cards to experience how technology has changed.
- 15,721 replies
-
LG PF1000U Ultra Short Throw Projector Giveaway
BlueDragon replied to CPotter's topic in LTT Releases
WOW what a beast of a projector! That would be cool to use for projections on the side of buildings.... -
Do you mean that you want the code above to work for each different option there is? For example you want it to do: command = {} command["command"] = sub_rows[0].get_text() command["message"] = sub_rows[1].get_text() command["accessLevel"] = sub_rows[2].get_text() command["group"] = sub_rows[3].get_text() command["counter"] = sub_rows[4].get_text command["..."] = sub_row[...].get_text ... commands.append(command) So you want to add all the parts in the JSON array into the command array?
-
Also another thing I noticed is: numpad9:: FileRead, key, C:\Users\Daniel\Documents\keypressed.txt If(key = S) Send ^!S return The send there is different to the send on others which has a + in it so I don't know if that makes any difference but probs does.
-
Well I haven't used AutoHotKey before but looking at that code I'm assuming the semicolon is for comments and if that is correct you have commented out a line which a comment says that it gives feedback on errors so my suggestion would be to uncomment that line and see what error messages you get and go from there
-
I suggest you double check the set up of your yml file
-
Tesoro Excalibur v2 & Sagitta Spectrum Giveaway
BlueDragon replied to nicklmg's topic in LTT Releases
I would like the keyboard because I have always wanted a mechanical keyboard ever since the first time I used one. It was amazing! Also it looks amazing!- 6,651 replies
-
- tesoro
- excalibur v2
-
(and 1 more)
Tagged with:
-
You're welcome. I'm glad I could help
-
Just noticed I didn't change the i on this line of code: cahUI.currentDealer.setText("Player " + (i+1)); You need to change the i to "newDealer"
-
I also changed it to remove the i value public static void setDealer(int numPlayers) { int oldDealer; int newDealer; if (Integer.parseInt(String.valueOf(cahUI.roundNumber.getText())) == 0) { oldDealer = 0; } else { oldDealer = (Integer.parseInt(String.valueOf(cahUI.currentDealer.getText().charAt(7))))-1; } do { newDealer = (int)(Math.floor(Math.random() * numPlayers)); } while (newDealer == oldDealer); cahUI.currentDealer.setText("Player " + (i+1)); dealerButtons(oldDealer, newDealer); }
-
I've just tested it... so whats the error ur getting because I'm not getting an error
-
What are u parsing in as numPlayers?
-
Okay, I think this will be what you need: public static void setDealer(int numPlayers) { int oldDealer; int newDealer; int i; if (Integer.parseInt(String.valueOf(cahUI.roundNumber.getText())) == 0) { oldDealer = 0; } else { oldDealer = (Integer.parseInt(String.valueOf(cahUI.currentDealer.getText().charAt(7))))-1; } do { i = (int)(Math.floor(Math.random() * numPlayers)); } while (i == oldDealer); cahUI.currentDealer.setText("Player " + (i+1)); newDealer = i; dealerButtons(oldDealer, newDealer); } What I've done is added "Math.floor" to the random genaration so that the number that is generated is always rounded down.
-
Okay, I'm guessing the problem is within the setDealer method, could you just explain what this method is supposed to do.