give function not working with variables

  • 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!

Status
Not open for further replies.

SteakBites

Member
Jul 18, 2022
14
1
1
16
I'm trying to make a give function give an amount based on a variable but it's not working
Code:
on join:
      set {%player's uuid%.HeartKeysOnJoin} to 1 #used for testing
      if {%player's uuid%.HeartKeysOnJoin} is greater than 0:
            give {%player's uuid%.HeartKeysOnJoin} tripwire hook named "&4Heart Crate Key" to player
            set {%player's uuid%.HeartKeysOnJoin} to 0

error message:
upload_2022-8-4_18-33-48.png
 
try
Code:
give {%player's uuid%.HeartKeysOnJoin} of tripwire hook named "&4Heart Crate Key" to player
 
Status
Not open for further replies.