1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

give function not working with variables

Discussion in 'Skript' started by SteakBites, Aug 5, 2022.

  1. SteakBites

    SteakBites Member

    Joined:
    Jul 18, 2022
    Messages:
    11
    Likes Received:
    0
    I'm trying to make a give function give an amount based on a variable but it's not working
    Code (Text):
    1. on join:
    2.       set {%player's uuid%.HeartKeysOnJoin} to 1 #used for testing
    3.       if {%player's uuid%.HeartKeysOnJoin} is greater than 0:
    4.             give {%player's uuid%.HeartKeysOnJoin} tripwire hook named "&4Heart Crate Key" to player
    5.             set {%player's uuid%.HeartKeysOnJoin} to 0
    error message:
    upload_2022-8-4_18-33-48.png
     
  2. JakeTheChad

    Supporter

    Joined:
    Jan 30, 2022
    Messages:
    83
    Likes Received:
    5
    please use lists and stop using dots in variables, they don't make any difference
     
  3. Samuelpc180

    Samuelpc180 New Member

    Joined:
    Mar 11, 2022
    Messages:
    9
    Likes Received:
    1
    try
    Code (Text):
    1. give {%player's uuid%.HeartKeysOnJoin} of tripwire hook named "&4Heart Crate Key" to player
     

Share This Page

Loading...