Code not working

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

Time4Games

Active Member
Jul 25, 2020
203
4
18
I made a ban system with a banlist. I want to remove the player from the banlist when is is unbanned
but it doesn't remove it. I tried puting other things like broadcast "d" and it did broadcast.
But when i do
Code:
command /o:
    trigger:
        remove player from {banlist::*}
it does work

here is the code:
(the problem is line 5)
Code:
on join:
    wait 3 seconds
    if player is online:
        if {ban.%player%} is "yes":
            remove player from {banlist::*}
            set {ban.%player%} to "no"
 
I made a ban system with a banlist. I want to remove the player from the banlist when is is unbanned
but it doesn't remove it. I tried puting other things like broadcast "d" and it did broadcast.
But when i do
Code:
command /o:
    trigger:
        remove player from {banlist::*}
it does work

here is the code:
(the problem is line 5)
Code:
on join:
    wait 3 seconds
    if player is online:
        if {ban.%player%} is "yes":
            remove player from {banlist::*}
            set {ban.%player%} to "no"

All i can say is that {ban.%player%} is not set to "yes"

Next to that make use of variable indexes

Wrong
Code:
add player to {banlist::*}

Right
Code:
set {banlist::%uuid of player%} to true
delete {banlist::%uuid of player%}
 
All i can say is that {ban.%player%} is not set to "yes"

Next to that make use of variable indexes

Wrong
Code:
add player to {banlist::*}

Right
Code:
set {banlist::%uuid of player%} to true
delete {banlist::%uuid of player%}

okay thanks ill try it
[doublepost=1596539491,1596537522][/doublepost]doesn't work
 
Status
Not open for further replies.