I get this error cant understand

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

Smartman_xd

Member
Apr 9, 2021
2
0
1
24
my skript
Code:
options:
    deny-username-message: &8> &4You can't put your username here&8!
    no-referral-message: &8> &4Ok&8! &4A person didn't tell you about the server&8.
    thank-you-message-1: &8> &aThank you for telling us &2%player%&8!
    thank-you-message-2: &8> &aThank you for inviting &2%player% &ato the server&8! &aYou earn 1 refer token!
    already-answered: &8> &4You already answered this&8!
    referral-1: &8> &aWho told you about the server? Please type /referral (username of who invited you)&8!
    referral-2: &8> &cType /referral none&8, &cif nobody invited you&8.

on first join:
    set {referral.%player%} to true
    wait 5 seconds
    message "{@referral-1}"
    message "{@referral-2}"

command /referral <offline player>:
    trigger:
        if {referral.%player%} is true:
            if arg 1 is player:
                message "{@deny-username-message}"
                stop
            if arg 1 is "none":
                message "{@no-referral-message}"
                set {referral.%player%} to false
                stop
            else:
                message "{@thank-you-message-1}"
                add 1 {refertoken.%arg 1%}
                if arg 1 is online:
                    message "{@thank-you-message-2}" to arg 1
                    set {referral.%player%} to false
        if {referral.%player%} is false:
            message "{@already-answered}"
            stop

Error: Cant understand this condition/effect: add 1 {refertoken.%arg-1%} (refer.sk, line 28: add 1 {refertoken.%arg 1%})
 

Attachments

  • 2021-04-25_10.44.01.png
    2021-04-25_10.44.01.png
    1.4 MB · Views: 164
code_language.skript:
add 1 to {refertoken.%arg-1%}
 
Last edited:
Status
Not open for further replies.