How do I add the amount of items that the player got in this scrip?
I was able to put the name of the item it collects, but I could not put the amount
I was able to put the name of the item it collects, but I could not put the amount
Lua:
doSendAnimatedText(topos, ""..random.."", TEXTCOLOR_RED)
addEvent(doPlayerSendTextMessage, 3*950, cid, 20, "Voce coletou "..getItemNameById(fruit)..".")
else
doSendAnimatedText(topos, ""..random.."", TEXTCOLOR_RED)
addEvent(doPlayerSendTextMessage, 4*950, cid, 20, "Voce nao conseguiu coletar.")
end
end
return true
end
Last edited: