hey can someone help me what did i do wrong with this code
"loc = locat("title_screen")" <error
mob/spectator
icon = null // has no icon, so even people with see_invisible can not see it
Move() // overide the default Move() proc
// leave the Move() proc empty, so the mob may not Move().
// You will have to set its loc directly.
New()
..() // do the default New() proc
loc = locate("title_screen") // start the mob on the turf with the tag "title_screen"
// see StartLocation for more info
Logout()
..()
del(src) // delete the mob when a player logs out of it
// this prevents unused spectators from cluttering memory
world
mob = /mob/spectator // make spectator the default mob for players
ID:147638
Feb 22 2004, 4:01 pm
|
|
Feb 22 2004, 4:09 pm
|
|
You indented it too far.
|
In response to Jon88
|
|
erm ok then someoen needs to yell at the person who wrote the code on this website can you show me how far to indent
http://bwicki.byond.com/ByondBwicki.dmb?TitleScreen |
In response to Chrisshehu
|
|
It's perfect on that website. You just added some spaces on that line, or something. That line should line up perfectly with the ..() above it.
|
In response to Jon88
|
|
ahh sorry it does line up perfectly in ym code when i pasted it it did that but in the code file it is lined up inderneath correctly so what else could it be?
|
In response to Chrisshehu
|
|
I copied and pasted it into Dream Maker. It does not line up. Your problem is bad indentation and copy & pasting.
|
In response to Chrisshehu
|
|
If you mix spaces and tabs when you indent, it may look like it lines up properly when one line has 2 tabs and another line has a tab and 4 spaces. One quick way that usually allows you to see if that's the case is to hit ctrl-T in Dream Maker to display tabs. (I always leave the tab display on while working in DM.)
Just go to the beginning of each line, delete the leading whitespace, and re-indent with tab. |