ID:138779
 
Code:
            Warp(atom/movable/O in world)
set desc = "Teleport an object to coordinates or to another object."
set category = "Admin"
if(!world.maxx)
var/area/area = input("Teleport [O] to which area?","Teleport:") as null|area in world
if(area) O.Move(area)
return

switch(input("Teleport [O] to what?","Teleport:") as null|anything in \
list("coordinates","object"))
if(null) return
if("coordinates")
var/_x = input("(Range: 1 - [world.maxx])","X Coordinate:",O.x) as null|num
var/_y = input("(Range: 1 - [world.maxy])","Y Coordinate:",O.y) as null|num
var/_z = input("(Range: 1 - [world.maxz])","Z Coordinate:",O.z) as null|num

if(_x > world.maxx || _x < 1) return
if(_y > world.maxy || _y < 1) return
if(_z > world.maxz || _z < 1) return

O.loc = locate(_x,_y,_z)
if("object")
var/atom/movable/X = input("Choose an object:","Object:") as null|mob|obj in world
O.loc = X.loc


Problem description:
Omniscia.dm:128:error: proc definition not allowed inside another proc
Line 128 is the set category line. I don't see a problem with this any tips?
well I noticed my misuse of the \list but aside from that >.>
I am able to run that code without error. What is above that function?
In response to Gyakumodorii
There's no misuse, the \ is suppressing the effect of a new line (if I remember correctly).

Where is this verb defined? Go back up further on the tree to make sure you have defined it correctly (ex: it is under /verb or a /mob or whatever it may be)
In response to GhostAnime
GhostAnime wrote:
There's no misuse, the \ is suppressing the effect of a new line (if I remember correctly).

Where is this verb defined? Go back up further on the tree to make sure you have defined it correctly (ex: it is under /verb or a /mob or whatever it may be)

ghost you are slightly correct, but I am reading the DM guide and back slash ( / ) is suppressing the fact of a new line.
In response to EclipseCovertAgent
Um, backslash is \ not /
http://www.byond.com/ members/?command=reference&path=DM%2Ftext%2Fmacros

(last line of the first DM snippet)
You have an indentation error with <code>Warp()</code>.

client

verb

test()

set category = "lala"

oh()

set category = "lala"


<code>hall.dm:11:error: proc definition not allowed inside another proc</code>