nicoxdry Posted April 12, 2020 Share Posted April 12, 2020 Hello im working on a /rankup skript for a prison server but I dont know why its not working. It sends an Internal error message each time I do /rankup Anyone know why its not working? Heres the code: command /rankup: Trigger: If player has permission "A" or "Default": If player's >= 25000 and 10000000000000: execute console command "/pex user %player% BB" broadcast "&6Rankup &7» &e%player% &6ranked up to &eB" message "&6Rankup &7» &6You ranked up to &eB" remove 25000 from player's balance Else: message "&6Rankup &7» &cYou don't have enough money to rankup!" Else: If player has permission "B": If player's >= 70000 and 10000000000000: execute console command "/pex user %player% CC" broadcast "&6Rankup &7» &e%player% &6ranked up to &eC" message "&6Rankup &7» &6You ranked up to &eC" remove 70000 from player's balance Else: message "&6Rankup &7» &cYou don't have enough money to rankup!" Link to comment Share on other sites More sharing options...
nicholxs Posted April 12, 2020 Share Posted April 12, 2020 Your issue is with your conditions. If player's >= 70000 and 10000000000000: First of all, the second number isn't needed. >= means greater than or equal to, so it's checking if the number is 70000 or more. Secondly, there's no such thing as "if player's >=". I think you mean if player's balance >= 25000 This will check the player's balance if you have an economy plugin. Next, your commands aren't correct either. /pex user %player% BB This should be /pex user %player% group set BB First Joined: July 2015VIP: January 2020Jr.Mod: 1st April 2020Mod: 16th July 2020Info:~ Skript Developer ~ Discord: @nicholxs#0001 ~ Previous names: Nichxlxs, Deterno, iHaveSkills, Retrical Link to comment Share on other sites More sharing options...
Adaptable Posted April 16, 2020 Share Posted April 16, 2020 Also I'd suggest using functions for this Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now