1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Error: player´s balance is not an entity type

Discussion in 'Skript' started by TrapsterDK, Apr 15, 2019.

Thread Status:
Not open for further replies.
  1. TrapsterDK

    TrapsterDK Member

    Joined:
    Apr 15, 2019
    Messages:
    2
    Likes Received:
    0
    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:
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    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"
     
  3. Runakai1

    Runakai1 Well-Known Member

    Joined:
    Apr 27, 2018
    Messages:
    398
    Likes Received:
    22
    I don’t know
     
  4. ELROMPEDIENTES

    Joined:
    Feb 24, 2017
    Messages:
    191
    Likes Received:
    7
    I think you need something like essentialsX because I have essentialsX and works for me
    Your code:
    Code (Text):
    1. command /pay <player> <integer>:
    2.     usage: /pay <player> <money>
    3.     trigger:
    4.         if player has permission "sk.kort":
    5.             if arg 1 has permission "sk.kort":
    6.                 if player's balance is more than or equal to arg 2:
    7.                     remove arg 2 from player's balance
    8.                     add arg 2 to arg 1's balance
    9.                     send "You got %arg 2%$ from %player%" to arg 1
    10.                     send "You have paid %arg 2%$ to %arg 1%"
    11.                 else:
    12.                     send "not enough money"
    13.             else:
    14.                 send "the one you want to pay need a card"
    15.         else:
    16.             send "you need a card"
    Console:
    Code (Text):
    1. [09:52:10 INFO]: [Skript] Reloading test.sk...
    2. [09:52:10 INFO]: [Skript] Successfully reloaded test.sk.
     
Thread Status:
Not open for further replies.
Loading...