i dont knpw whats going on but i am using zilals begginer and i keep getting the this message heres my coding hopefully i can get some help
mob
icon= 'person.dmi' //make it so all mobs will be created with this person icon
Login()
con_state=gender
..()
say (msg as text)//what the usr says is passed into "msg" as text
world<<"[usr]:[msg]"//the world sees chatroom-like output
turf
grass//defines a "grass" prototype, which is a kind of turf...
icon='grass.dmi'//and has an icon named 'grass.dmi'. In single quotes!
forget it i give up on making a game my tabs go really for and i keep getting inconsistent indentation
world//we set one of our world characteristics:
turf=/turf/grass//its default turf is the grass turf
ID:143356
Sep 30 2007, 6:22 am (Edited on Sep 30 2007, 6:29 am)
|
|
This is your original code: (Please use dm tags when posting code, it makes it much easier to read)
mob You're getting errors because you're defining say() inside of the Login() procedure. You need to tell DM that you're defining a new proc/verb, too. mob That should resolve most of your problems. If you're going to post on the forums asking for help, try not to throw a small tantrum in the middle of your post and essentially say, "Oh well, I give up. This is too hard, yet for some reason I'm going to try to get help anyway." We understand DM might be difficult for some people to get into, but that's really not a very mature way to express that sentiment, and it certainly won't help you learn or get you much sympathy. Feel free to ask any other questions. |
As you've probably already noticed, DM is picky about indentation because that's how it tells what goes with what. Sometimes indentation errors manifest as "Inconsistent indentation", but sometimes the compilere is just really confused as to what you really meant. In those cases it can spit out different errors like "Proc definition not allowed inside another proc".
The trick to knowing that's an indentation issue is to think it through carefully. How is a proc defined? Often, you have a line like myproc() and then indent a block of code underneath it. When you look at where the error takes you when you double-click it, you should see that say() line. DM sees that you're trying to define a proc (or in this case a verb), but that's still inside the Login() code. The ..() line is also indented too far. Lummox JR |
Next, you defined a say verb wrong, it should branch off from verb:
mob
verb
say()
As for inconsistent indentation, just make sure you're always using the same amount of tabs or spaces, and that you're branching off from the correct parents