[Prev][Next][Index][Thread]

# Coding Problem

- Date: Thu, 28 Dec 1995 14:21:04 PST
- From:
- Reply-To:

    How do I make the following code work?  Right now, it just gives me the "ERROR:
    Could not access text on object." every time.

    Thanks in advance!

    otret = $string_utils:explode(args[1], "?")[1];
    otrargs = $string_utils:explode($string_utils:explode(args[1], "?")[2], ",");
    if ($object_utils:has_callable_verb(otret, "return_text"))
    if (typeof(otrargs) != ERR)
    otret:return_text(@otrargs);
    else
    otret:return_text();
    endif
    else
    notify(player, "ERROR: Could not access text on object.");
    move(otret, otret.owner);
    endif

    James Renken                                Renk0006@Gold.TC.UMN.Edu
    Student, University of Minnesota          http://acm.cs.umn.edu/~jpr
    "We demand that you bring this planet up to code!" - Calvin & Hobbes

Follow-Ups:

- Re: Coding Problem

- From: Pavel Curtis <pavel@parc.xerox.com>

- Prev: Re: chr() & asc() patches?
- Next: Re: Coding Problem
- Index: MOO-cows
- Thread: MOO-cows

Home | Subject Index | Thread Index