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

Help Skript: if player's balance is more than or equal to

Discussion in 'Skript' started by ExpertRobiTv, Jan 2, 2022.

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

    ExpertRobiTv Member

    Joined:
    Jan 2, 2022
    Messages:
    1
    Likes Received:
    0
    Hi, I have encountered an error that I cannot understand in my script



    ERROR:
    [04:04:16 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (atm.sk, line 2: trigger:')
    [04:04:16 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (atm.sk, line 8: trigger:')
    [04:04:16 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (atm.sk, line 15: trigger:')
    [04:04:16 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (atm.sk, line 22: trigger:')
    [04:04:16 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (atm.sk, line 29: trigger:')
    [04:04:16 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (atm.sk, line 36: trigger:')
    [04:04:16 ERROR]: Unexpected entry 'if player's balance is more than or equal to 1'. Check whether it's spelled correctly or remove it. (atm.sk, line 3: if player's balance is more than or equal to 1:')
    [04:04:16 ERROR]: Unexpected entry 'if player's balance is more than or equal to 5'. Check whether it's spelled correctly or remove it. (atm.sk, line 9: if player's balance is more than or equal to 5:')
    [04:04:16 ERROR]: Unexpected entry 'if player's balance is more than or equal to 10'. Check whether it's spelled correctly or remove it. (atm.sk, line 16: if player's balance is more than or equal to 10:')
    [04:04:16 ERROR]: Unexpected entry 'if player's balance is more than or equal to 20'. Check whether it's spelled correctly or remove it. (atm.sk, line 23: if player's balance is more than or equal to 20:')
    [04:04:16 ERROR]: Unexpected entry 'if player's balance is more than or equal to 50'. Check whether it's spelled correctly or remove it. (atm.sk, line 30: if player's balance is more than or equal to 50:')
    [04:04:16 ERROR]: Unexpected entry 'if player's balance is more than or equal to 100'. Check whether it's spelled correctly or remove it. (atm.sk, line 37: if player's balance is more than or equal to 100:')
     

    Attached Files:

  2. TweedeKamer

    TweedeKamer Member

    Joined:
    Sep 6, 2021
    Messages:
    25
    Likes Received:
    1
    You indented it wrong. After the trigger you need to use another tab. If you don't understand this please look at the good below to see the difference.


    Code (Text):
    1. command /prelieva1atmconsole:
    2.     trigger:
    3.         if player's balance is more than or equal to 1:
    4.             console command "eco take %player% 1"
    5.             console command "give %player% black_glazed_terracotta 1"
    6.  
    7. command /prelieva5atmconsole:
    8.     trigger:
    9.         if player's balance is more than or equal to 5:
    10.             console command "eco take %player% 5"
    11.             console command "give %player% gold_block 1"
    12.             stop
    13.  
    14. command /prelieva10atmconsole:
    15.     trigger:
    16.     if player's balance is more than or equal to 10:
    17.         console command "eco take %player% 10"
    18.         console command "give %player% diamond_block 1"
    19.         stop
    20.  
    21. command /prelieva20atmconsole:
    22.     trigger:
    23.         if player's balance is more than or equal to 20:
    24.             console command "eco take %player% 20"
    25.             console command "give %player% emerald_block 1"
    26.             stop
    27.  
    28. command /prelieva50atmconsole:
    29.     trigger:
    30.     if player's balance is more than or equal to 50:
    31.         console command "eco take %player% 50"
    32.         console command "give %player% quartz 1"
    33.         stop
    34.  
    35. command /prelieva100atmconsole:
    36.     trigger:
    37.         if player's balance is more than or equal to 100:
    38.             console command "eco take %player% 100"
    39.             console command "give %player% iron_block 1"
    40.             stop
     
Thread Status:
Not open for further replies.

Share This Page

Loading...