Hey guys,
I am working on a skript that checks someones inventory of items and broadcast it.
but i got a problem:
This code isnt working.
I tried this:
This kinda works, but if i have like 2 coins in one slot, and 4 in another, it broadcasts "6 coins, 6 coins" instead of "2 coins, 4 coins"
Can you guys help me out?
I am working on a skript that checks someones inventory of items and broadcast it.
but i got a problem:
code_language.skript:
else if loop-item is a sunflower:
if amount of loop-item is greater than 1:
add "%amount of loop-item% coins" to {inv::*}
This code isnt working.
I tried this:
code_language.skript:
else if loop-item is a sunflower:
if number of loop-item in player's inventory is greater than 1:
add "%number of loop-item in player's inventory% coins" to {inv::*}
This kinda works, but if i have like 2 coins in one slot, and 4 in another, it broadcasts "6 coins, 6 coins" instead of "2 coins, 4 coins"
Can you guys help me out?