Build need help

  • 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 community!

    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.

Brok3nmind

Active Member
Feb 3, 2017
66
1
8
Germany
darkvoid.eu
command /build:
trigger:
if {build.%player%} is 0:
set {build.%player%} to 1:
send "&6&lSystem&8:&7 You can't build !"
if {build.%player%} is 1:
set {build.%player%} to 0:
send "&6&lSystem&8:&7 You can build &7!"

{build.%player%} dont work i dont know why ???
 
command /build:
trigger:
if {build.%player%} is 0:
set {build.%player%} to 1:
send "&6&lSystem&8:&7 You can't build !"
if {build.%player%} is 1:
set {build.%player%} to 0:
send "&6&lSystem&8:&7 You can build &7!"

{build.%player%} dont work i dont know why ???
Errors on reload? And do you set that variable anywhere else? You may need to include an "if" statement where if said variable is not set, set it to 0.
 
command /build:
trigger:
if {build.%player%} is 0:
set {build.%player%} to 1:
send "&6&lSystem&8:&7 You can't build !"
if {build.%player%} is 1:
set {build.%player%} to 0:
send "&6&lSystem&8:&7 You can build &7!"

{build.%player%} dont work i dont know why ???
What happend is that wenn you check if its 0 it Will set it To 1 but after that THE code continues To check if its 1 yes iT is becouse you just set iT To 1 so it Will always be 0. THE other reason like @Wynnevir sayed THE variable might not be set so it isn't 0 or 1
 
Status
Not open for further replies.