Need Help | Shop GUI (Script) [If Players Balance Error]

  • 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.
Feb 17, 2017
6
0
0
25
So recently ive been trying to make a shop gui plugin and in script i keep typing:


command /shop10:
trigger:
if players balance is greater then or equal to 200
execute console command "/eco take 200"
execute console command "/give %player% cobblestone 64"
else:
send "&cYou Do Not Have Enough Money For This!"

Anyone Know Another Way To Make This Work (Skript Error Says If Players Balance Is Not A Entity Type) Please Find A Solution Thanks :emoji_grinning:
 
So recently ive been trying to make a shop gui plugin and in script i keep typing:


command /shop10:
trigger:
if players balance is greater then or equal to 200
execute console command "/eco take 200"
execute console command "/give %player% cobblestone 64"
else:
send "&cYou Do Not Have Enough Money For This!"

Anyone Know Another Way To Make This Work (Skript Error Says If Players Balance Is Not A Entity Type) Please Find A Solution Thanks :emoji_grinning:

Use Code Format pls.
well, try this.

code_language.skript:
command /shop10:
    trigger:
        if player's money is more than or equal to 200:
            subtract 200 from player's money
            execute console command "/give %player% cobblestone 64"
            stop
        else:
            send "&cYou Do Not Have Enough Money For This!"
 
Use Code Format pls.
well, try this.

code_language.skript:
command /shop10:
    trigger:
        if player's money is more than or equal to 200:
            subtract 200 from player's money
            execute console command "/give %player% cobblestone 64"
            stop
        else:
            send "&cYou Do Not Have Enough Money For This!"


Says Players Money Is Not A Enetity Type
 
Says Players Money Is Not A Enetity Type
Code:
command /shop10:
    trigger:
        if player's balance is more than or equal to 200:
            remove 200 from player's balance
            give player 64 cobblestone
            stop
        else:
            send "&cYou Do Not Have Enough Money For This!"
Requires Vault to remove the money
 
Status
Not open for further replies.