Here is my code. two num plus > 0 but add a variable < 0 !!!
function addExp(actorExp, val)
local actorExp = actorExp -- actorExp = 800000000
local val = val -- val = 3000000000
if actorExp + val -- Here actorExp > 0 then
-- actorExp + val > 0 but
actorExp = actorExp + val -- Here actorExp = -2147483648 ???
else return end
updateInfo(actor)
end
how can i fix it