[code] local scoreAtual = score.getScore()
if scoreAtual > bestScore then
bestScore = scoreAtual
saveit.save() [/code]
this is my function to save the best score but i’m getting this error:
level1.lua:262: attempt to compare string with number
Runtime script error at file level1.lua line 262
any idea?
thanks [import]uid: 23063 topic_id: 10037 reply_id: 310037[/import]
[import]uid: 3826 topic_id: 10037 reply_id: 36649[/import]