ID:145708
 
Code:
mob
Login()
world << "Hello, world!"


Problem description:

when i put that in my code it like generate's a error..and it's like i know im trying to learn how to code but it's like kinda difficult when your a new person to coding and you have 0% coding in your blood and now since ive started taking lessons from the DM Guide i think ive gained about 4% to my coding smartness..so can anyone help me with this
It may be outputting an error because you do not have '..()' in there. ..() calls the parent(default) procedure, in this case you need it to complete the login process.
Well, it would certainly help to know which error you were getting.

Lummox JR
In response to XxDohxX
ok i found out why it was doing a error it was because i was putting
mob
Login()
world << "Hello, world!"
and i was supposed to put
mob
login()
world << "hello, world!"
like that to make the steps see the difference? with those steps i made the code would have to like JUMP instead of walk onto it but the new one made it were it could walk onto it and not jump or leap..thanks anyways..just to know..will it change the message if you put
mob
login()
world << "[msg]"
the [msg] would be kinda like my own made up sentence instead of "hello, world"
In response to VolksBlade
Ummmm... what?
In response to VolksBlade
VolksBlade wrote:
ok i found out why it was doing a error it was because i was putting
mob
Login()
world << "Hello, world!"
and i was supposed to put
mob
login()
world << "hello, world!"
like that to make the steps see the difference? with those steps i made the code would have to like JUMP instead of walk onto it but the new one made it were it could walk onto it and not jump or leap..thanks anyways..just to know..will it change the message if you put
mob
login()
world << "[msg]"
the [msg] would be kinda like my own made up sentence instead of "hello, world"

Maybe you are looking for something like this..

var/msg = "Hello!"
mob
Login()
world << "[msg]"
..()


That does what it looks like you are trying to do.. look at that and then look at what you have to see the differences. Technically you don't have to have the '..()', but all that does it tells Dream Maker, "Hey, do what you would normally do now."
In response to VolksBlade
VolksBlade wrote:
ok i found out why it was doing a error it was because i was putting
mob
Login()
world << "Hello, world!"
and i was supposed to put
mob
login()
world << "hello, world!"

No. The first letters of Login() and Logout() are capitalized...

O-matic