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

Vane2k16

Member
Feb 17, 2018
10
1
0
21
Hello, i need help with a function for a signupdate.

this is the function for the signupdate:

Code:
function signupdate(a: text):
    set line 1 of block at {knockout.sign::%{_a}%} to "- KNOCKOUT -"
    set line 2 of block at {knockout.sign::%{_a}%} to "[&aONLINE&r]"
    set line 4 of block at {knockout.sign::%{_a}%} to "&8%{knockout.%{_a}%}%/20"

and this is the command to activate the function:


Code:
options:
    
    map1: unicate
    map2: duo
    map3: easy
    
command /knockout <text>:
    trigger:
        if arg-1 is "join{@map1}":
            wait 1 tick
            add 1 to {knockout.{@map1}}
            signupdate(@map1)

And these are the errors:

Screenshot-7.png


Skript Version :
Skript 2.2
Skript Author: Bensku
Minecraft Version: 1.8.x
 
Hello, i need help with a function for a signupdate.

this is the function for the signupdate:

Code:
function signupdate(a: text):
    set line 1 of block at {knockout.sign::%{_a}%} to "- KNOCKOUT -"
    set line 2 of block at {knockout.sign::%{_a}%} to "[&aONLINE&r]"
    set line 4 of block at {knockout.sign::%{_a}%} to "&8%{knockout.%{_a}%}%/20"

and this is the command to activate the function:


Code:
options:
 
    map1: unicate
    map2: duo
    map3: easy
 
command /knockout <text>:
    trigger:
        if arg-1 is "join{@map1}":
            wait 1 tick
            add 1 to {knockout.{@map1}}
            signupdate(@map1)

And these are the errors:

Screenshot-7.png


Skript Version :
Skript 2.2
Skript Author: Bensku
Minecraft Version: 1.8.x
Surround the options in quotes. "{@map1}". Also you did not include the curvy brackets in the function args.
 
Status
Not open for further replies.