I need help

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

    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!

jin

Member
Oct 4, 2022
3
0
1
I made a simple shop skript which enables players to buy an item
This is my excerpt from mycode

subtract 1 gold ingot from player if player has 1 gold ingot
give 1 iron sword to player
if player does not own 1 gold ingot
Cancel event
Apparently It can't my apply my code ' if player does not own 1 gold ingot' do you know how to fix it?
 
Number one, use code blocks, they're cool, number two you're putting multiple things on one line

Code:
if player has 1 gold ingot:
    # Code here
else:
    # Rejection code here
 
Number one, use code blocks, they're cool, number two you're putting multiple things on one line

Code:
if player has 1 gold ingot:
    # Code here
else:
    # Rejection code here
Putting multiple things on one line? Are you referring to line 1? That’s been skript syntax for years