tnecniiv
scripter to be
- Joined
- Jan 6, 2012
- Messages
- 294
- Solutions
- 3
- Reaction score
- 23
why is my client debugging after i pull a certain lever
function onUse(cid, item, fromPos, item2, toPos)
if item.itemid == 9827 then
doPlayerSendTextMessage(cid, 21, "It worked!")
doTransformItem(item.uid, 9828)
elseif item.itemid == 9828 then
doPlayerSendTextMessage(cid, 21, "You pulled it back!")
doTransformItem(item.uid, 9827)
end
return True
end
i am learning to script so i am still really new at i was following the lua guide in the resources section
function onUse(cid, item, fromPos, item2, toPos)
if item.itemid == 9827 then
doPlayerSendTextMessage(cid, 21, "It worked!")
doTransformItem(item.uid, 9828)
elseif item.itemid == 9828 then
doPlayerSendTextMessage(cid, 21, "You pulled it back!")
doTransformItem(item.uid, 9827)
end
return True
end
i am learning to script so i am still really new at i was following the lua guide in the resources section