|
python Queue function bug
|
Reply to this subject
Start a new subject
 
Refresh page
| Posted by |
Fly
(2 posts) bio
|
| Date |
Tue 20 Apr 2010 09:53 PM (UTC) [ quote
] |
| Message |
Script error
World: a
Execution of line 1 column 0
Immediate execution
Traceback (most recent call last):
File "<Script Block 10>", line 1, in <module>
world.Queue(world.EvaluateSpeedwalk("4n"), true)
NameError: name 'true' is not defined
Line in error:
world.Queue(world.EvaluateSpeedwalk("4n"), true) | top |
|
| Posted by |
Nick Gammon
Australia (18,770 posts) bio
Forum Administrator |
| Date |
Reply #1 on Tue 20 Apr 2010 10:29 PM (UTC) [ quote
] Amended on Tue 20 Apr 2010 10:30 PM (UTC) by Nick Gammon
|
| Message |
I'm no Python expert, but for most functions I think you can substitute 1 for true and 0 for false.
This isn't a bug BTW - you are having trouble with the Python script engine, not MUSHclient. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
| Posted by |
Fly
(2 posts) bio
|
| Date |
Reply #2 on Wed 21 Apr 2010 08:24 AM (UTC) [ quote
] |
| Message |
Thank you reply
This isn't bug, is my problem | top |
|
| Posted by |
David Haley
USA (3,881 posts) bio
Moderator |
| Date |
Reply #3 on Wed 21 Apr 2010 03:55 PM (UTC) [ quote
] |
| Message |
In Python, the value 'true' is written as 'True' (and false is 'False').
BTW if this isn't a bug report it should probably be filed somewhere other than the "Bug reports" section. :-) |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | top |
|
| Posted by |
Nick Gammon
Australia (18,770 posts) bio
Forum Administrator |
| Date |
Reply #5 on Thu 22 Apr 2010 01:01 AM (UTC) [ quote
] |
| Message |
Amended the documentation for the next release (and similar instances in other functions).
Also moved to General part of forum. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
1,759 views.
Reply to this subject
Start a new subject
 
Refresh page
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )