How to fix it?
[URL="http://imgur.com/BiSyErg"]http://imgur.com/BiSyErg[/URL]
CODE:
Line 70-99
[CODE]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 )[/CODE]
The document:
[CODE]0;-0;-0;0;0;0
-823; 1239; -132;0; 0; 0[/CODE]
[editline]7th November 2016[/editline]
Help please!
Ugh, how did you take that shitty screenshot? [url=https://xkcd.com/763/]actually, don't tell me...[/url]
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\n-823" ("\n" being the newline character).
I do not understand, please indicate this in your code please.
[QUOTE=Barashek;51323521]How to fix it?
[URL="http://imgur.com/BiSyErg"]http://imgur.com/BiSyErg[/URL]
[/QUOTE]
That is the best compressed screenshot of an error I've seen
[QUOTE=Lunaversity;51324403]That is the best compressed screenshot of an error I've seen[/QUOTE]
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.
Sorry, you need to Log In to post a reply to this thread.