Hot Summer Deals are Here!
Celebrate with up to 99% off on 17,400 resources
02
Days
12
Hours
06
Mins
41
Secs

Anyone who can help me , code Problem

Status
This thread has been locked.

LauGLau

Banned
Feedback score
0
Posts
132
Reactions
12
Resources
0
Hello guys anyone can explain me why i have this type of erros and how to fix it.
dfe7264e6698342d95614413c1c944c5.png
8d1808649e6922da83286fda5ec43419.png

Please tell me how to fix it. if u need to see the code add me in skype.

( My SKype : Laug.lau )
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Nagi

PM Only - No Skype
Supreme
Feedback score
12
Posts
535
Reactions
679
Resources
0
Maybe it was, but when I started I knew there were flaws. I didn't just assume all of my code was pristine simply because there were no syntax errors.
Well there's actually several things "wrong" with that code.

Why use 2.14748365E9F when you can use Integer.MAX_VALUE (or Float.MAX_VALUE, if that's what you intended on doing)?
Why paste inv.setItem(... 26 different times when you could've used a loop?
Why doesn't the "Menu" and "Border" method have camel notation?

And... @SuppressWarnings("unused") ... need I say more?
 

Lacroix

creativity at its finest!
Supreme
Feedback score
40
Posts
1,663
Reactions
771
Resources
0
Well there's actually several things "wrong" with that code.

Why use 2.14748365E9F when you can use Integer.MAX_VALUE (or Float.MAX_VALUE, if that's what you intended on doing)?
Why paste inv.setItem(... 26 different times when you could've used a loop?
Why doesn't the "Menu" and "Border" method have camel notation?

And... @SuppressWarnings("unused") ... need I say more?
Don't know but it still works.
 

Skionz

ogminecraft.com
Premium
Feedback score
1
Posts
1,544
Reactions
1,527
Resources
0
Well there's actually several things "wrong" with that code.

Why use 2.14748365E9F when you can use Integer.MAX_VALUE (or Float.MAX_VALUE, if that's what you intended on doing)?
Why paste inv.setItem(... 26 different times when you could've used a loop?
Why doesn't the "Menu" and "Border" method have camel notation?

And... @SuppressWarnings("unused") ... need I say more?
I'm aware of how awful that code is. I was referring to his ignorance as shown here:
Don't need. It works fine, no Errors.
Don't know but it still works.
 

Nagi

PM Only - No Skype
Supreme
Feedback score
12
Posts
535
Reactions
679
Resources
0
Don't know but it still works.
System.out.println("Don't do this".toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString());

"still works", but why do it like that when you can make it cleaner?
 

Lacroix

creativity at its finest!
Supreme
Feedback score
40
Posts
1,663
Reactions
771
Resources
0
System.out.println("Don't do this".toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString());

"still works", but why do it like that when you can make it cleaner?
Woah when did I do all that? WTF
 

Tyler

Developer
Supreme
Feedback score
14
Posts
2,589
Reactions
2,238
Resources
0
Why did this thread go on for 5 pages when the answer was in the first post?
 

Tyler

Developer
Supreme
Feedback score
14
Posts
2,589
Reactions
2,238
Resources
0
People who don't know how to code were trying to get us to spoon-feed the answer even though we told him the answer right in the beginning.
Because they don't understand that you should (and pretty much need) to learn Java before using an API for Java.
 

Ammar T

Programming Teacher
Supreme
Feedback score
7
Posts
820
Reactions
394
Resources
0
This entire thread is pointless.
  • OP and other script kiddies, learn to program at least basically before trying to program plugins.
  • Non-developers, please don't say "stop bullying the developers because you didn't help them" when you don't actually understand that we did spoon-feed the OP the answer to the question in the first post. "I don't really know Java but it looks like something that's hard" is not an excuse for you to say that it's hard, again it's hard for you and them because you didn't spend the 10 minutes it takes to learn this.
  • Overall, we've figured out that the so-called "pro" developers are just developers that can actually program and the others are either unheard of (not their fault) or just bad.
 

WhereDidMyNameGo

Feedback score
1
Posts
400
Reactions
145
Resources
0
It's funny how off-topic this thread got even though the answer was legit the 2nd comment on the first page lol.
 

Skionz

ogminecraft.com
Premium
Feedback score
1
Posts
1,544
Reactions
1,527
Resources
0
  • Overall, we've figured out that the so-called "pro" developers are just developers that can actually program and the others are either unheard of (not their fault) or just bad.
I have never thought of it that way, but this is so true it actually made me laugh. Probably the most intelligent post I have seen all day.
 

Czarek

Supreme
Feedback score
2
Posts
230
Reactions
204
Resources
0
I have never thought of it that way, but this is so true it actually made me laugh. Probably the most intelligent post I have seen all day.
God fucking dammit. Skionz has been right from the beginning and there are so many retards coming here telling him that he should not bash him and help him better? He told him the solution in his first post, fucking retards.[DOUBLEPOST=1470133806][/DOUBLEPOST]
This code is 100% trash and someone should go to jail for compiling it.
 
Status
This thread has been locked.
Top