I want to write to a value in my lua module, using the code below:
local levelPacks = require "levelpacks"
if levelPacks[locCurrentLevelPack][locCurrentLevel].score \>
levelPacks[locCurrentLevelPack][locCurrentLevel].hScore then
levelPacks:write(levelPacks[locCurrentLevelPack][locCurrentLevel].hScore =
levelPacks[locCurrentLevelPack][locCurrentLevel].score)
end
I’ve tried wrapping the code in the if block in, io.write( ) and levelPacks:write( ). Do I need to include the io namespace? Any pointers please, thanks.
Lewis. [import]uid: 87611 topic_id: 14631 reply_id: 314631[/import]