I'm making an exchange system.
and for the player to get the item, he needs to swap 2 items instead of 1.
I tried to make some changes but always the error, how to fix this?
TFS : 0.3.6
and for the player to get the item, he needs to swap 2 items instead of 1.
I tried to make some changes but always the error, how to fix this?
TFS : 0.3.6
Lua:
function onSay(cid, words, param)
if getPlayerItemCount(cid, 2145) < 10 then
return doPlayerSendTextMessage(cid, 20, "Precisa de 100x + 100a.") and true
end
if getPlayerItemCount(cid, 2145) >= 10 then
doPlayerAddItem(cid, 12618, 5)
doPlayerRemoveItem(cid, 2145, 10)
doPlayerSendTextMessage(cid, 20, "voce comprou 5 Boost stone!")
return true
end
end
Code: