player's money is not an entity type.

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

Can Yuce

New Member
May 20, 2017
6
0
0
code_language.skript:
command /speedbuy1:
    trigger:
        player money is higher than 1500:
            execute console command "/money take %player% 1500"
            give diamond helmet to player
        else:
            send "&cYou dont have enough money."
            cancel event
player money is not an entity type. i tried all the possible options.
 
it's not player money, it's player's money. Other thing, instead of do:
code_language.skript:
execute console command "/money take %player% 1500"
You could just do:
code_language.skript:
remove 1500 from player's money
 
code_language.skript:
remove 1500 from player's money
but i use this command. Player's money can go negative.
 
code_language.skript:
remove 1500 from player's money
but i use this command. Player's money can go negative.
Dependent of what you're using as economy system plugin, there should be an option to disable the ability of have negative numbers as money.
 
where i can disable the negative money.
[doublepost=1495284199,1495283878][/doublepost]i already did it. And its saying the same.
 
code_language.skript:
command /speedbuy1:
    trigger:
        player money is higher than 1500:
            execute console command "/money take %player% 1500"
            give diamond helmet to player
        else:
            send "&cYou dont have enough money."
            cancel event
player money is not an entity type. i tried all the possible options.
You can:

code_language.skript:
command /speedbuy1:
    trigger:
        if player's money is greater than or equal to 1500:
            remove 1500 from player's balance"
             add 1 of diamond helmet to the player
        else:
            send "&cYou dont have enough money."
            stop
 
not working... :/ i think its an error with vault version and skript version. Can you give me latest skript plugin and latest vault plugin.
 
Status
Not open for further replies.