Teleport to Spawn if lastBed doesnt exist
#9
(05-14-2017, 04:45 AM)Seadragon91 Wrote: Change
Player.TeleportToCoords(SpawnX, SpawnY, SpawnZ)
to
Player:TeleportToCoords(SpawnX, SpawnY, SpawnZ)

Has to be a colon :


Waaah.... now i see the different in xoft's post too.....

obj.fn("a") -- calls obj.fn with param "a"
obj:fn("a") -- calls obj.fn with params obj, "a"



I understand... thanksConfusedick:
Reply
Thanks given by:


Messages In This Thread
RE: Teleport to Spawn if lastBed doesnt exist - by moiko89 - 05-14-2017, 04:59 AM



Users browsing this thread: 1 Guest(s)