Author Topic: Need help with coding.  (Read 1265 times)

Sorry I cannot read the message in the 0.1 seconds
its correctly cod-

the window stays open after printing the message
??????????????????????????????

Ok I took a joke from the rack
Now what do I do with it?
Imports Blockland.Forums

Module ShoveItUpYours
   Sub Main()
      doitfriend()
   End Sub

   Private Sub doitfriend()
      Dim usr As User = FindUser("Zeblote")
      Dim ass = user.GetPart("Ass")
      Dim joke As Item = FindItem("joke")
      usr.Shove(joke, ass, Direction.Up)
   End Sub
End Module
Damn beat me to it

its correctly cod-
??????????????????????????????
Do not split the post
The window opens prints a message and instantly closes

Do not split the post
The window opens prints a message and instantly closes


sorry but this is not what other weird language you code in.

please
do
no
post
by
repeatedly
pressing
enter

instead, keep it like this, makes it cleaner and easier to read.

[IMG ]http://i.imgur.com/KbXLXNz.png[/img]

sorry but this is not what other weird language you code in.
you do realize the "press any key to continue" bit is an IDE feature and not a language feature? lol.

if(OP.ishandicapped = true)
{
system.out.println("LOL");
}

if(OP.ishandicapped = true)
{
system.out.println("LOL");
}
you did it wrong.

you did it wrong.
woops. i need two equals signs. is the rest right?

woops. i need two equals signs. is the rest right?

well if you want to get technical, no, because "System" is a class and needs a capital letter

also is OP an object? does it have a value "ishandicapped"? why is it not encapsulated? you should be using a get method for that.

also you can just say (OP.gethandicapped()) because that is already a statement. it would be calling a boolean method.

if you want to do it your way it would be (OP.ishandicapped) you don't even need the == true because it just wants to know if OP is handicapped. if you wanted to check if OP was not handicapped, (!OP.ishandicapped)



edit: also you can call a single line of code directly after an if statement if you want to.

so you can just say,

if(OP.gethandicapped()) System.out.println("LOL");
« Last Edit: February 04, 2013, 08:08:57 PM by SpreadsPlague »

well if you want to get technical, no, because "System" is a class and needs a capital letter that was just laziness

also is OP an object? does it have a value "ishandicapped"? why is it not encapsulated? you should be using a get method for that. never heard of this. tbh whenever i use booleans it's just ishandicapped, not OP.ishandicapped

also you can just say (OP.gethandicapped()) because that is already a statement. it would be calling a boolean method.

if you want to do it your way it would be (OP.ishandicapped) you don't even need the == true because it just wants to know if OP is handicapped. if you wanted to check if OP was not handicapped, (!OP.ishandicapped)



edit: also you can call a single line of code directly after an if statement if you want to.

so you can just say,

if(OP.gethandicapped()) System.out.println("LOL");
Just to be clear, we're both talking about java? Torque and Java do share a lot.

Just to be clear, we're both talking about java? Torque and Java do share a lot.

yes

no please scratch is not a language
« Last Edit: February 05, 2013, 03:10:26 AM by Magnusbon »

So, if i've never done any coding whatsoever before what should I learn first?

So, if i've never done any coding whatsoever before what should I learn first?
Everyone.

Whichever one is the least painful you continue to learn that language.