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

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

ExpertRobiTv

Member
Jan 2, 2022
1
0
1
23
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:')
 

Attachments

  • prelievaatm.sk
    1.3 KB · Views: 135
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:
command /prelieva1atmconsole:
    trigger:
        if player's balance is more than or equal to 1:
            console command "eco take %player% 1"
            console command "give %player% black_glazed_terracotta 1"

command /prelieva5atmconsole:
    trigger:
        if player's balance is more than or equal to 5:
            console command "eco take %player% 5"
            console command "give %player% gold_block 1"
            stop

command /prelieva10atmconsole:
    trigger:
    if player's balance is more than or equal to 10:
        console command "eco take %player% 10"
        console command "give %player% diamond_block 1"
        stop

command /prelieva20atmconsole:
    trigger:
        if player's balance is more than or equal to 20:
            console command "eco take %player% 20"
            console command "give %player% emerald_block 1"
            stop

command /prelieva50atmconsole:
    trigger:
    if player's balance is more than or equal to 50:
        console command "eco take %player% 50"
        console command "give %player% quartz 1"
        stop

command /prelieva100atmconsole:
    trigger:
        if player's balance is more than or equal to 100:
            console command "eco take %player% 100"
            console command "give %player% iron_block 1"
            stop
 
Status
Not open for further replies.