Hello all I have this error and I narrowed it down to a small peice of code but for the life of me I cant figure out what is wrong.
This is the error:
Lua Runtime Error: lua_pcall failed with status: 2, error message is: ?:0: attempt to perform arithmetic on upvalue ‘?’ (a string value)
here is the code I have been using.
local now = os.time()
local footballlastPurchasetime = tonumber (footballlastPurchase)
print("now time")
if (now \> (footballlastPurchase + 1800)) then
-- 1800 is 30 minutes need to change to 604900 = 7 days
saveValue( "football.data",footballlock )
saveValue( footballFilename, tostring(footballlock) )
--reset the footbal data to 0
storyboard.gotoScene( "maingame", "crossFade", 500 )
end
Thanks for the help in advanced.
[import]uid: 34105 topic_id: 35429 reply_id: 335429[/import]