ID:148834
Sep 12 2002, 5:42 pm
|
|
What does it mean when it says "Undefined proc"?
|
Sep 12 2002, 6:00 pm
|
|
It means you're trying to call a proc you haven't defined.
|
XzeroX wrote:
What does it mean when it says "Undefined proc"? The meaning is self-explanatory. The cause however... Make sure the type of the var you are using the proc with actually has a proc with that name. Note that this is the type of the var, not the thing that was assigned to the var. For example, the following should not compile: var/atom/myVar = new/mob(locate(42,42,42)) myVar.Move(locate(1,1,1),SOUTH) The /mob type may have a Move() proc, but not all atoms do. The compiler only knows that myVar can do things that /atom can. This is because myVar was declared as an atom. You also might want to check and see if you mistyped the name of the proc in question. Remember that capital and lower case letters count. (I know that may sound simple, but I find myself forgetting to hit the shift key half of the time.) |