Number in between

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

Lukhausen

Active Member
Mar 20, 2017
145
11
18
i basicly want to check if the player is standing in between that coordinates
but this wont work:

code_language.skript:
every second:
    loop all players:
        if x coordinate of loop-player is between {property.property::%player%::x1} and {property.property::%player%::x2}:
            message "LEVEEEEE NOW!!!XXXXX"
        if y coordinate of loop-player is between {property.property::%player%::y1} and {property.property::%player%::y2}:
            message "LEVEEEEE NOW!!!YYYYY"
 
You first problem is with your variable

{property.property::%player%::x1}

you are looping players, so there is no single player in a loop event, meaning it won't be able to check the variable containing %player% because there is no player in this event
 
Status
Not open for further replies.