Can't understand the problem

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

qvx

Member
Jul 1, 2023
1
0
1
25
I want to count the amounts of player heads in a persons inventory with a specific name

like this:

command /fisksell:
trigger:
set {_pufferfish} to amount of player heads named "&apufferfish" in player's inventory
send "%{_pufferfish}% sold" to player

There are no errors but the send command sends me 0 instead of the amount of player heads in my inventory

Any one that can help me?
 

Attachments

  • help.png
    help.png
    727 bytes · Views: 42
  • help1.png
    help1.png
    7.4 KB · Views: 49
Hi, i tested on my server and everything is fine. Personally in skript I don't see anything wrong either. So maybe try to update your skript or something, bc this code is good.