• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

How to check and print message for player with globalstorage?

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

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
 
Back
Top