So i have this problem that i dont know why but it takes string as an instance?
Tried searching on devforum and hasnt found anything (yet),
all variables are set correctly.
Error Image
Code
--loadMap
local function loadMap(stringData)
local blocks = str_splt(stringData, ";") --Error line
for i,v in blocks do
loadVoxel(str_splt(v, ":"))
end
end
loadMap("1:0,1,0:0;2:1,1,0:0;3:-1,1,0:0;0:1,0,0")
For me it works. The problem lies somewhere else, make sure that stringData is a string in all cases. I am sure that somewhere in the code the first argument to loadMap is not a string.