This should work :)
function onUse(cid, item, frompos, item2, topos)
if item2.itemid == 2239 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Parabens, voce se tornou um membro VIP do ExtremeOT por 30 dias!")
local val = getPlayerStorageValue(cid, 30009)...