#Teleport player to {variable} ERROR

1 messages · Page 1 of 1 (latest)

sonic saffron
#

why are you doing this:

        set {_x} to x-coordinate of player
        set {_y} to y-coordinate of player
        set {_z} to z-coordinate of player
        set {_world} to world of player
        set {_yaw} to yaw of player
        set {_pitch} to pitch of player
        set {spawn::} to location({_x}, {_y}, {_z}, {_world}, {_yaw}, {pitch})

when you could literally do
set {spawn} to location of player ?

Also
set {spawn::} to location...
what is {spawn::} ??

#

why are you tagging me?
We're the only 2 here

#

you never showed the error

#

why do you have the there?

#

remove the and show the error

#

if i remember correctly, you can only teleport to ONE location

#

why are you using a list variable for 1 spawn location?

#

use a single variable

#

no, use a single variable

#

1 variable

#

not a list variable

#

is that a single variable?

#

i shouldn't have to.
This is basic Skript.
You should learn basic Skript.
Here is a wiki on variables, i recommend reading the WHOLE thing, and no, i dont mean skim over it for what you are looking for, actually read it
https://forums.skunity.com/wiki/variables

#

the solution is in the wiki i sent, so please go learn some basic Skript