You left one "end":
function onUse(cid, item, frompos, item2, topos)
if item.uid == 5006 then
queststatus = getPlayerStorageValue(cid,2008)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found your first armor.")
doPlayerAddItem(cid,2465,1)...