[HELP] Lua Error!

How to fix it?

http://imgur.com/BiSyErg

CODE:
Line 70-99


function ulx.allfires( calling_ply )
	for k, v in pairs(file.Find("craphead_scripts/fire_system/".. string.lower(game.GetMap()) .."/fire_location_map.txt", "DATA")) do
		if FIRE_CurrentFires >= FIRE_MaxFires then 
			return 
		end
		
		local Randomize = 2
		if FIRE_RandomizeFireSpawn then
			Randomize = math.random(1,2)
		end
		
		if tonumber(Randomize) == 2 then
			local PositionFile = file.Read("craphead_scripts/fire_system/".. string.lower(game.GetMap()) .."/".. v, "DATA")
				
			local ThePosition = string.Explode( ";", PositionFile )
				
			local TheVector = Vector(ThePosition[1], ThePosition[2], ThePosition[3])
			local TheAngle = Angle(tonumber(ThePosition[4]), ThePosition[5], ThePosition[6])

			local Fire = ents.Create("fire")
			Fire:SetPos(TheVector)
			Fire:SetAngles(TheAngle)
			Fire:Spawn()
		end
	end
	
	ulx.fancyLogAdmin( calling_ply, true, "#A started all fires" ) 
end
local allfires = ulx.command( "Fire System", "ulx allfires", ulx.allfires, "!allfires", true )
allfires:defaultAccess( ULib.ACCESS_SUPERADMIN )

The document:


0;-0;-0;0;0;0
-823; 1239; -132;0; 0; 0

[editline]7th November 2016[/editline]

Help please!

Ugh, how did you take that shitty screenshot? actually, don’t tell me…

Why aren’t you using tonumber on all of the arguments?

[editline]8th November 2016[/editline]

Actually, it’s because of the new line in the middle of the file. ThePosition[6] will equal “0
-823” ("
" being the newline character).

I do not understand, please indicate this in your code please.

That is the best compressed screenshot of an error I’ve seen

Your answer is not on.

Would probably help but screenshot is unreadable.

May as well give it to us in wingdings :v:

the problem is solved.