mob/verb/say(msg as text)
if(msg == null)
usr <<"> You must type something)"
else
world <<"> [usr]: [msg]"
This doesn't work. Why?
ID:178242
Jun 6 2002, 3:26 am
|
|
In response to Lummox JR
|
|
Lummox JR wrote:
ShadowSiientx wrote:
if(!msg)
That will handle both cases. Heres a demo (is bored) mob/verb/say(msg as text) // The actual verb RaeKwon |
Please close your tags.
The reason this doesn't work is that an empty message isn't null; it's "". You can fix this by changing your if() to this:
if(!msg)
That will handle both cases.
Lummox JR