vexler222
Active Member
- Joined
- Apr 22, 2012
- Messages
- 714
- Solutions
- 15
- Reaction score
- 46
Hi, i was try print message for player if global bonus is activate, but when i try use this script i can't login to game, how to check global storage?
i try too without prefix Game. but not working too
i try too without prefix Game. but not working too
Code:
function onLogin(player)
if Game.getStorageValue(17585) == 1 then
player:sendTextMessage(MESSAGE_EVENT_ORANGE, "Global XP Bonus: ON")
else
player:sendTextMessage(MESSAGE_EVENT_ORANGE, "Global XP Bonus: OFF")
end
end