Try this?
local t = {
rate = 1.6, -- 4x More Experience
storage = 20011
}
local function endExpRate(cid)
if isPlayer(cid) == TRUE then
doPlayerSetRate(cid, SKILL__LEVEL, 1) -- config.lua rate
setPlayerStorageValue(cid, t.storage, -1)
doPlayerSendTextMessage(cid...