Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Lua
➜ Word number to actual number
Word number to actual number
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1
2
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #15 on Mon 06 Nov 2017 06:47 AM (UTC) |
Message
| It looks like Lua changed its behaviour between version 5.1 (which MUSHclient uses) and 5.2.
In 5.1 only strings and numbers can be implicitly used as strings. In 5.2 a value with a "__tostring" metatable entry could be used to convert it to a string (like a "big number" value).
Thus, since ColourNote does not call "tostring" implicitly, you need to explicitly call it in the example you have provided. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #16 on Mon 06 Nov 2017 07:04 AM (UTC) |
Message
|
Rene said:
Sorry, was a typo I meant like that.
I realised my issue what with using ColourNote, (i.e. ColourNote("white", "", convert_words_to_numbers(amount) ) for some reason that gave an error ...
It is always helpful to post the error message, rather than vaguely saying that it "gave an error". |
- 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.
50,863 views.
This is page 2, subject is 2 pages long:
1
2
It is now over 60 days since the last post. This thread is closed.
Refresh page
top