Sigoles
Discord: @sigoles
- Joined
- Nov 20, 2015
- Messages
- 1,209
- Solutions
- 2
- Reaction score
- 154
Hello, this command is for check exp:
But when character dont have the bonus exp this happens:
10:20 You have -24207320 minutes of Double Exp on your Character.
Someone can help with this ?
Code:
local price_aols = 5000
function onSay(player, words, param)
local bonusTime = math.ceil((player:getStorageValue(1234) - os.time())/60)
if player:getStorageValue(1234) >= bonusTime and player:getMoney() >= price_aols then
player:removeMoney(price_aols)
player:getPosition():sendMagicEffect(CONST_ME_MAGIC_RED)
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "You have " .. bonusTime .. " minutes of Double Exp on your Character.")
else
player:getPosition():sendMagicEffect(CONST_ME_POFF)
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_ORANGE, "You need 5k for check exp.")
end
end
But when character dont have the bonus exp this happens:
10:20 You have -24207320 minutes of Double Exp on your Character.
Someone can help with this ?
Last edited by a moderator: