why can`t i run my Script

Posted by Xmarine on Sun 22 Apr 2012 09:45 AM — 6 posts, 19,525 views.

#0
here is my code:
-----------------------------------
require "wait"



function test()

wait.make (function () --- coroutine below here

Execute("say Hello")

wait.time (5)

Execute("say I love MUSH")

end) -- end of coroutine



end

-------------------------------------
but the mush give such message:

Compile error
World: XXXX
Immediate execution
[string "Command line"]:1: '=' expected near '<eof>'

who can tell me why ?
USA Global Moderator #1
It seems to me that some information is missing.
Where did you put this bit of code? In a plugin? In an alias?
#2
in the document "world" of mushclient
USA Global Moderator #3
So in some file like MUSHclient/worlds/myworld.mcl ?
Can you show the entire document contents? (make sure it does not include any passwords or anything)
#4
what`s your mean sir ?
USA Global Moderator #5
You said the code is in a document. Please show the whole document, not just the part you think is important.