error in misc file
Ok i was testing my mod and I got this error minetest-0.4.7\bin\..\builtin/misc.lua:17: attempt to call field 'func' (a nil value)
The error came up when this was called or when the function game was called.
function game:
Please help.
Also it didn't wait before it called the function.
edit: I'm using minetest version 4.7
The error came up when this was called or when the function game was called.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.after(4,game)
function game:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
function game()
players = minetest.get_connected_players()
if #players < 2 then
reset()
return
end
for i = 1, #catchers do
local num = math.random(1, #catcherspawns[lvlnum])
catchers[i]:setpos(catcherspawns[lvlnum])
end
for i = 1, #runners do
local num = math.random(1, #runnerspawns[lvlnum])
runners[i]:setpos(runnerpawns[lvlnum])
end
GameOn = true
loading = false
end
Please help.
Also it didn't wait before it called the function.
edit: I'm using minetest version 4.7