This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Problems with tonumber(e)
#3
This happens because storage.get returns more than 1 value.

Either add another set of parentheses:
Code:
iLastTime = tonumber((storage.get(sUID, 0)))

Or split it into two lines to make it more readable:
Code:
value = storage.get(sUID, 0)
iLastTime = tonumber(value)
Reply


Messages In This Thread
Problems with tonumber(e) - by mjaanes - 03.04.2020, 11:44
RE: Problems with tonumber(e) - by Daniel - 03.04.2020, 12:18
RE: Problems with tonumber(e) - by admin - 03.04.2020, 12:38
RE: Problems with tonumber(e) - by mjaanes - 03.04.2020, 18:28

Forum Jump: