An internal error has occurred 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 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!

Status
Not open for further replies.

FossilOG

Member
Jul 31, 2019
12
0
1
for some reason when I'm trying to test my shop and buy something It always says "An internal error has occurred problem etc.." no skript errors just that for some reason?

Code:
command /seedshop:
    trigger:
        wait 3 ticks
        open chest with 3 rows named "&7Shop » Seeds" to player
        format slot 0 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 1 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 2 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 3 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 4 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 5 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 6 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 7 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 8 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 9 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 10 of player with wheat seed with lore "&aCosts: $25" to run [make player execute command "/seedshopwheat"]
        format slot 11 of player with carrot with lore "&aCosts: $2000" to run [make player execute command "/seedshopcarrot"]
        format slot 12 of player with potato with lore "&aCosts: $2000" to run [make player execute command "/seedshoppotato"]
        format slot 13 of player with sugar cane with lore "&aCosts: $4500" to run [make player execute command "/seedshopsugar"]
        format slot 14 of player with pumpkin with lore "&aCosts: $4000" to run [make player execute command "/seedshoppumpkin"]
        format slot 15 of player with melon slice with lore "&aCosts: $5500" to run [make player execute command "/seedshopmelon"]
        format slot 16 of player with cactus with lore "&aCosts: $6000" to run [make player execute command "/seedshopcactus"]
        format slot 17 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 18 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 19 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 20 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 21 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 22 of player with nether wart with lore "&aCosts: $6000" to run [make player execute command "/seedshopnether"]
        format slot 23 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 24 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 25 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 26 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]


command /seedshopwheat:
    trigger:
        if player's balance is greater than or equal to 25:
            execute console command "eco take %player% 25"
            execute console command "give %player% wheat_seeds 1"
        Else:
            send "&c&lOpra&fShop &7» &cYou don't have money to buy this!"




command /seedshopcarrot:
    trigger:
        if player's balance is greater than or equal to 2000:
            execute console command "eco take %player% 2000"
            execute console command "give %player% carrot 1"
        Else:
            send "&c&lOpra&fShop &7» &cYou don't have money to buy this!"




command /seedshoppotato:
    trigger:
        if player's balance is greater than or equal to 2000:
            execute console command "eco take %player% 2000"
            execute console command "give %player% potato 1"
        Else:
            send "&c&lOpra&fShop &7» &cYou don't have money to buy this!"




command /seedshopsugar:
    trigger:
        if player's balance is greater than or equal to 4500:
            execute console command "eco take %player% 4500"
            execute console command "give %player% sugar_cane 1"
        Else:
            send "&c&lOpra&fShop &7» &cYou don't have money to buy this!"




command /seedshoppumpkin:
    trigger:
        if player's balance is greater than or equal to 4000:
            execute console command "eco take %player% 4000"
            execute console command "give %player% pumpkin 1"
        Else:
            send "&c&lOpra&fShop &7» &cYou don't have money to buy this!"




command /seedshopmelon:
    trigger:
        if player's balance is greater than or equal to 5500:
            execute console command "eco take %player% 5500"
            execute console command "give %player% melon_slice 1"
        Else:
            send "&c&lOpra&fShop &7» &cYou don't have money to buy this!"




command /seedshopcactus:
    trigger:
        if player's balance is greater than or equal to 6000:
            execute console command "eco take %player% 6000"
            execute console command "give %player% cactus 1"
        Else:
            send "&c&lOpra&fShop &7» &cYou don't have money to buy this!"




command /seedshopnether:
    trigger:
        if player's balance is greater than or equal to 6000:
            execute console command "eco take %player% 6000"
            execute console command "give %player% nether_wart 1"
        Else:
            send "&c&lOpra&fShop &7» &cYou don't have money to buy this!"

I know there is a better way on making a shop but I find this simple, If you can show me a easier way and simple way that would be awesome :emoji_slight_smile: and also try tell me whats the problem thanks :emoji_slight_smile:
 
for some reason when I'm trying to test my shop and buy something It always says "An internal error has occurred problem etc.." no skript errors just that for some reason?

Code:
command /seedshop:
    trigger:
        wait 3 ticks
        open chest with 3 rows named "&7Shop » Seeds" to player
        format slot 0 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 1 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 2 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 3 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 4 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 5 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 6 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 7 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 8 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 9 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 10 of player with wheat seed with lore "&aCosts: $25" to run [make player execute command "/seedshopwheat"]
        format slot 11 of player with carrot with lore "&aCosts: $2000" to run [make player execute command "/seedshopcarrot"]
        format slot 12 of player with potato with lore "&aCosts: $2000" to run [make player execute command "/seedshoppotato"]
        format slot 13 of player with sugar cane with lore "&aCosts: $4500" to run [make player execute command "/seedshopsugar"]
        format slot 14 of player with pumpkin with lore "&aCosts: $4000" to run [make player execute command "/seedshoppumpkin"]
        format slot 15 of player with melon slice with lore "&aCosts: $5500" to run [make player execute command "/seedshopmelon"]
        format slot 16 of player with cactus with lore "&aCosts: $6000" to run [make player execute command "/seedshopcactus"]
        format slot 17 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 18 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 19 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 20 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 21 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 22 of player with nether wart with lore "&aCosts: $6000" to run [make player execute command "/seedshopnether"]
        format slot 23 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 24 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 25 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]
        format slot 26 of player with gray stained glass pane named "&3"  to run [make player execute command "/nothing "]


command /seedshopwheat:
    trigger:
        if player's balance is greater than or equal to 25:
            execute console command "eco take %player% 25"
            execute console command "give %player% wheat_seeds 1"
        Else:
            send "&c&lOpra&fShop &7» &cYou don't have money to buy this!"




command /seedshopcarrot:
    trigger:
        if player's balance is greater than or equal to 2000:
            execute console command "eco take %player% 2000"
            execute console command "give %player% carrot 1"
        Else:
            send "&c&lOpra&fShop &7» &cYou don't have money to buy this!"




command /seedshoppotato:
    trigger:
        if player's balance is greater than or equal to 2000:
            execute console command "eco take %player% 2000"
            execute console command "give %player% potato 1"
        Else:
            send "&c&lOpra&fShop &7» &cYou don't have money to buy this!"




command /seedshopsugar:
    trigger:
        if player's balance is greater than or equal to 4500:
            execute console command "eco take %player% 4500"
            execute console command "give %player% sugar_cane 1"
        Else:
            send "&c&lOpra&fShop &7» &cYou don't have money to buy this!"




command /seedshoppumpkin:
    trigger:
        if player's balance is greater than or equal to 4000:
            execute console command "eco take %player% 4000"
            execute console command "give %player% pumpkin 1"
        Else:
            send "&c&lOpra&fShop &7» &cYou don't have money to buy this!"




command /seedshopmelon:
    trigger:
        if player's balance is greater than or equal to 5500:
            execute console command "eco take %player% 5500"
            execute console command "give %player% melon_slice 1"
        Else:
            send "&c&lOpra&fShop &7» &cYou don't have money to buy this!"




command /seedshopcactus:
    trigger:
        if player's balance is greater than or equal to 6000:
            execute console command "eco take %player% 6000"
            execute console command "give %player% cactus 1"
        Else:
            send "&c&lOpra&fShop &7» &cYou don't have money to buy this!"




command /seedshopnether:
    trigger:
        if player's balance is greater than or equal to 6000:
            execute console command "eco take %player% 6000"
            execute console command "give %player% nether_wart 1"
        Else:
            send "&c&lOpra&fShop &7» &cYou don't have money to buy this!"

I know there is a better way on making a shop but I find this simple, If you can show me a easier way and simple way that would be awesome :emoji_slight_smile: and also try tell me whats the problem thanks :emoji_slight_smile:
Dont use SkQuery GUIs. It's preferable to use TuSKe or Vanilla GUIs.

Also, this way you save yourself a lot of hard work:

code_language.skript:
set {_n} to 0
loop 10 times:
    format a gui slot {_n} of player with gray stained glass pane named "&3"  to do nothing
    add 1 to {_n}
 
Status
Not open for further replies.