Jump to content

Skript error. Please help


LocalServerHost

Recommended Posts

Just now, Splxshy said:

command /redeem freerank:
    trigger:
        execute console command: "lp user %player% parent set vip"
        send "&6&l%player% has redeemed their free &c&lVIP&b&l! Claim yours too!"

 

can someone please help?

Screenshot 2021-04-16 at 6.45.47 PM.png

Hey, the problem is that you put a : after command.

This is how it should be: execute console command "lp user %player% parent set vip"

Also, next time, use the Skript category to post questions related to Skript plugin.

Hello there! If you're reading this, hope you're having a wonderful day!

 

Feel free to contact me via Discord (CoolProgrammer#1920) for any help.

My DMs are always open for help.

You can also message via. forum messages for help.

1604908226_ScreenShot2021-01-28at10_32_28AM.png.2646ad6be239a9d0756a99e8e15602ab.png

Also, don't hesitate to leave a like on my post if I helped you in any way.

Link to comment
Share on other sites

Just now, Splxshy said:

Oh okay. Im sorry!

It's okay, don't be sorry, good day!

Hello there! If you're reading this, hope you're having a wonderful day!

 

Feel free to contact me via Discord (CoolProgrammer#1920) for any help.

My DMs are always open for help.

You can also message via. forum messages for help.

1604908226_ScreenShot2021-01-28at10_32_28AM.png.2646ad6be239a9d0756a99e8e15602ab.png

Also, don't hesitate to leave a like on my post if I helped you in any way.

Link to comment
Share on other sites

1 minute ago, Splxshy said:

btw 1 more question. How can I make it so you can use it only once?

You can use variables for it. Here is an example:

command /redeem:
    trigger:
        if {claimed::*} contains player's uuid:
            send "&cYou've already claimed."
            stop
        execute console command "lp user %player% parent set vip"
        send "&6&l%player% has redeemed their free &c&lVIP&b&l! Claim yours too!"
        add player's uuid to {claimed::*}

 

Hello there! If you're reading this, hope you're having a wonderful day!

 

Feel free to contact me via Discord (CoolProgrammer#1920) for any help.

My DMs are always open for help.

You can also message via. forum messages for help.

1604908226_ScreenShot2021-01-28at10_32_28AM.png.2646ad6be239a9d0756a99e8e15602ab.png

Also, don't hesitate to leave a like on my post if I helped you in any way.

Link to comment
Share on other sites

Moved to Script Discussion.

Joined on January 17th 2016

VIP since April 5 2017 - August 1st 2019

JrMod since August 1st

Mod since October 1st

SrMod since November 2nd - 2/7/21

Patron since February 8 - 3/7/21

Mod since March 8 2021

Retired since idk when

 

    [IMG]    button.png?t=Appeal&f=Calibri-Bold&ts=26&tc=fff&tshs=1&tshc=000&hp=20&vp=8&c=10&bgt=gradient&bgc=1d0dea&ebgc=1a0855&be=1 button.png?t=Rules&f=Calibri-Bold&ts=26&tc=fff&tshs=1&tshc=000&hp=20&vp=8&c=10&bgt=gradient&bgc=1d0dea&ebgc=1a0855&be=1  

If I helped or entertained you at all today, please react with a heart.

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