Solved What am i doing wrong here? Location variables

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

Nick

New Member
Jan 27, 2017
8
0
1
Could anyone tell me what I'm doing wrong here please

Code:
on break:
    #Pos1
    set {_x} to {loc.1.x::%uuid of player%}
    set {_y} to {loc.1.y::%uuid of player%}
    set {_z} to {loc.1.z::%uuid of player%}
    set {_loc1} to location at {_x}, {_y}, {_z} in world "realms"
    #Pos2
    set {_x} to {loc.2.x::%uuid of player%}
    set {_y} to {loc.2.y::%uuid of player%}
    set {_z} to {loc.2.z::%uuid of player%}
    set {_loc2} to location at {_x}, {_y}, {_z} in world "realms"
    if location of event-block is not within {_loc1} to {_loc2}:
        cancel event
        send "You do not own this realm." to player

Error: https://gyazo.com/07d9b2c50745c4af5bcbaa9a75a09017

Thanks
 
Status
Not open for further replies.