jona21
Member
- Joined
- Jan 19, 2010
- Messages
- 38
- Reaction score
- 5
Well i made a script but didnt work
here it is
and the error i get
here it is
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(uid, 1) == 1001 then
doPlayerAddItem(uid, 2650)
doPlayerAddItem(uid, 2512)
doPlayerSetStorageValue(uid, 1, 1002)
doSendMagicEffect(pos, 36)
doPlayerSendTextMessage(cid,21,"You found something usefull !")
elseif getPlayerStorageValue(uid, 1) == 1002 then
doPlayerSendTextMessage(cid,21,"There is nothing here")
return true
end
end
and the error i get
Last edited by a moderator: