Jump to content

Can Someone Fix It


HeyItsmeblury

Recommended Posts

So My Skript says there is no erorrs but when i do /levelup everything works then i click on the rank i want to buy but it doesnt give it to u also when i reload it says no errors but it does say 

List is missing 'and' or 'or', defaulting to 'and': 0,4,8,22,26 (rankingup.sk, line 25: format gui slot 0,4,8,22,26 of player with yellow stained pane named "" to do nothing')

this is the skript

options:
    prefix: &6&lCloutFarms&7 |


function shop(player: player, group: string, cost: number):
    if {_player}'s balance < {_cost}:
        send "{@prefix} You haven't got enough money!" to {_player}
    else:
        remove {_cost} from {_player}'s balance
        console command "pex user {_player} group set {_group}"


command /levelup:
    aliases: ru
    trigger:
        open virtual chest with size 3 to player
        set {_a} to 0
        loop 45 times:
            format gui slot {_a} of player with gray stained glass pane named " " to do nothing
            add 1 to {_a}
        format gui slot 0,4,8,22,26 of player with yellow stained glass pane named " " to do nothing
        format gui slot 18 of player with yellow stained glass pane named "&cBack" to close:
            player command "/shop"
        format gui slot 10 of player with paper named "&aSprout&f 10,000" with lore "&72 Plots" to close:
            if player's balance < 10000:
                send "{@prefix} You haven't got enough money!" to player
            else:
                remove 10000 from player's balance
                console command "pex user %player% group set sprout"
                #
        format gui slot 11 of player with paper named "&2Seedling &f50,000" with lore "&73 Plots" to close:
            if player's balance < 50000:
                send "{@prefix} You haven't got enough money!" to player
            else:
                remove 50000 from player's balance
                console command "pex user %player% group set seedling"
                #
        format gui slot 12 of player with paper named "&3Sapling&f 100,000" with lore "&74 Plots" to close:
            if player's balance < 100000:
                send "{@prefix} You haven't got enough money!" to player
            else:
                remove 100000 from player's balance
                console command "pex user %player% group set sapling"
                #
        format gui slot 13 of player with paper named "&9Tree&f 1,000,000" with lore "&7/Fly" to close:
            if player's balance < 1000000:
                send "{@prefix} You haven't got enough money!" to player
            else:
                remove 1000000 from player's balance
                console command "pex user %player% group set tree"
                #
        format gui slot 14 of player with paper named "&6King&f 10,500,000" with lore "&7/God" to close:
            if player's balance < 10500000:
                send "{@prefix} You haven't got enough money!" to player
            else:
                remove 10500000 from player's balance
                console command "pex user %player% group set king"
                #
        format gui slot 15 of player with paper named "&5Ender&f 50,000,000" with lore "&7/Tp" to close:
            if player's balance < 50000000:
                send "{@prefix} You haven't got enough money!" to player
            else:
                remove 50000000 from player's balance
                console command "pex user %player% group set ender"
                #
        format gui slot 16 of player with paper named "&DDragon&f 1,000,000,000" with lore "&7/Fix" to close:
            if player's balance < 1000000000:
                send "{@prefix} You haven't got enough money!" to player
            else:
                remove 1000000000 from player's balance
                console command "pex user %player% group set dragon"
                #
                
                
                
            
            
            
                

command /rank:
    trigger:
        send "&7-------| {@prefix}-------"
        send "&aSprout &f$10,000"
        send "&2Seedling &f$50,000"
        send "&3Sapling &f$100,000"
        send "&9Tree &f$1,000,000"
        send "&6King &f$10,500,000"
        send "&5Ender &f$50,000,000"
        send "&dDragon &f$1,000,000,000"
        send "&7-------| {@prefix}-------"

on command "/rankup":
 send "&cThis Command Has Been Moved To &c&l/Levelup"

Edited by ItzAnox
Link to comment
Share on other sites

  • 3 weeks later...
On 12/7/2019 at 10:08 AM, ItzAnox said:

format gui slot 0,4,8,22,26

you need to do:

format gui slot 0, 4, 8, 22 and 26

 

Also it's pretty cool how you completely copied MigFarms' ranking system. 😕

Edited by Migqy

Hello ily all and I hope you are having a fantastic day.

Drink water or you will die.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...