Shop GUI

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

K3pser_

Member
May 28, 2017
4
0
0
25
Hey.
I have been working on a Shop GUI for a Skyblock server.
Idk why its not working, but it says "An internal error occurred while attempting to perform this command"
Can someone help me out there?

Skript: https://pastebin.com/WgJNaetV
 
Oh... you just have a Whackadoodle of indentation errors
Ex:
code_language.skript:
command /dsahwdkawdnsajd:
    Trigger:
        If player has 1 of cobblestone in inventory:
                remove 1 of cobblestone from player's inventory
                add 2 to player's balance
                message "{@m} &bDu solgte 1 cobblestone for $3"
            else:
                message "{@m} &cDu har ikke nok cobblestone"
As you can see everything after your if statement is indented once too many
 
Oh... you just have a Whackadoodle of indentation errors
Ex:
code_language.skript:
command /dsahwdkawdnsajd:
    Trigger:
        If player has 1 of cobblestone in inventory:
                remove 1 of cobblestone from player's inventory
                add 2 to player's balance
                message "{@m} &bDu solgte 1 cobblestone for $3"
            else:
                message "{@m} &cDu har ikke nok cobblestone"
As you can see everything after your if statement is indented once too many
So what do i do? I have used hours on it..
 
So what do i do? I have used hours on it..
You fix your indentation errors.
Its hard to explain, but basically you need to make sure everything is lined up correctly!
If you have extra tabs remove them. Just read your errors they tell you exactly what is wrong!
 
Status
Not open for further replies.