Teleport to Spawn if lastBed doesnt exist
#5
If i use

PHP Code:
    local SpawnX = WorldIni:GetValueI("SpawnPosition", "X")
    
local SpawnY = WorldIni:GetValueI("SpawnPosition", "Y")
    
local SpawnZ = WorldIni:GetValueI("SpawnPosition", "Z") 


i become this msg


Code:
[20:06:37] LUA: Plugins/Test1/main.lua:27: attempt to call method 'GetValuelI' (a nil value)
[20:06:37] Stack trace:
[20:06:37]   Plugins/Test1/main.lua(27): (no name)
[20:06:37] Stack trace end
[20:06:37] Error in <attached> calling function <callback>()


can you give me an example?
Reply
Thanks given by:


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



Users browsing this thread: 1 Guest(s)