Not sure where i missed it (Im no where near a good lua scripter ^^,) But if i remember correct; every IF needs an end right?
So the final code should look somewhat like this then
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isInArray({468, 481, 483}, itemEx.itemid) then...