Error: player´s balance 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 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.

TrapsterDK

Member
Apr 15, 2019
2
0
0
19
First i know the function Pay is already exist
Skript version: I think the newest
Vault version: Idk
i have SKQuery and SKRayfall as well
Code:
command /pay <player> <integer>:
usage: /pay <player> <money>
trigger:
if player has permission "sk.kort":
if arg 1 has permission "sk.kort":
if player's balance is more than or equal to arg 2:
remove arg 2 from player's balance
add arg 2 to arg 1's balance
send "You got %arg 2%$ from %player%" to arg 1
send "You have paid %arg 2%$ to %arg 1%"
else:
send "not enough money"
else:
send "the one you want to pay need a card"
else:
send"you need a card"
Error:
´player´s balance´ is not an entity type (name.sk, line 6: if player's balance is more than or equal to arg 2:emoji_slight_smile:
 
First i know the function Pay is already exist
Skript version: I think the newest
Vault version: Idk
i have SKQuery and SKRayfall as well
Kinda hard to help you when all your version numbers are "I don't know"
You should probably get this information and post it if you are looking to get some help.... because with that info all we can say is "I don't know"
 
First i know the function Pay is already exist
Skript version: I think the newest
Vault version: Idk
i have SKQuery and SKRayfall as well
Code:
command /pay <player> <integer>:
usage: /pay <player> <money>
trigger:
if player has permission "sk.kort":
if arg 1 has permission "sk.kort":
if player's balance is more than or equal to arg 2:
remove arg 2 from player's balance
add arg 2 to arg 1's balance
send "You got %arg 2%$ from %player%" to arg 1
send "You have paid %arg 2%$ to %arg 1%"
else:
send "not enough money"
else:
send "the one you want to pay need a card"
else:
send"you need a card"
Error:
´player´s balance´ is not an entity type (name.sk, line 6: if player's balance is more than or equal to arg 2:emoji_slight_smile:
I think you need something like essentialsX because I have essentialsX and works for me
Your code:
Code:
command /pay <player> <integer>:
    usage: /pay <player> <money>
    trigger:
        if player has permission "sk.kort":
            if arg 1 has permission "sk.kort":
                if player's balance is more than or equal to arg 2:
                    remove arg 2 from player's balance
                    add arg 2 to arg 1's balance
                    send "You got %arg 2%$ from %player%" to arg 1
                    send "You have paid %arg 2%$ to %arg 1%"
                else:
                    send "not enough money"
            else:
                send "the one you want to pay need a card"
        else:
            send "you need a card"
Console:
Code:
[09:52:10 INFO]: [Skript] Reloading test.sk...
[09:52:10 INFO]: [Skript] Successfully reloaded test.sk.
 
Status
Not open for further replies.