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
➜ Variables
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Fadedparadox
USA (91 posts) Bio
|
Date
| Sat 02 Dec 2006 08:40 AM (UTC) Amended on Sun 03 Dec 2006 02:42 AM (UTC) by Fadedparadox
|
Message
| I found a longer version of this, and I edited it to suit what I needed. I tested as best I could, but I figured I would ask to make sure. Are there any errors in this, assuming I will only use it with numbers and only to check or change them?
var = {}
setmetatable (var,
{
__index =
function (t, name)
return tonumber(GetVariable (name))
end;
__newindex =
function (t, name, val)
local result
result = SetVariable (name, val)
end;
})
| 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.
8,050 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top