You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Dunno why, but if I use some flood script, it'll crash all clients after some time. I don't know a reason.
See steps to reproduce for serverside script I used. It's from the wiki, lol
To Reproduce
-- Setting water properties.
local level = 0
local SizeVal = 2998
-- Defining variables.
local southWest_X = -SizeVal
local southWest_Y = -SizeVal
local southEast_X = SizeVal
local southEast_Y = -SizeVal
local northWest_X = -SizeVal
local northWest_Y = SizeVal
local northEast_X = SizeVal
local northEast_Y = SizeVal
Describe the bug
Dunno why, but if I use some flood script, it'll crash all clients after some time. I don't know a reason.
See steps to reproduce for serverside script I used. It's from the wiki, lol
To Reproduce
-- Setting water properties.
local level = 0
local SizeVal = 2998
-- Defining variables.
local southWest_X = -SizeVal
local southWest_Y = -SizeVal
local southEast_X = SizeVal
local southEast_Y = -SizeVal
local northWest_X = -SizeVal
local northWest_Y = SizeVal
local northEast_X = SizeVal
local northEast_Y = SizeVal
water = createWater ( southWest_X, southWest_Y, level, southEast_X, southEast_Y, level, northWest_X, northWest_Y, level, northEast_X, northEast_Y, level )
function part2( )
setElementPosition(localPlayer, -780, 463, 0)
for i=1, 100 do
a = createPed(0, -780 + math.random(-10, 10), 463 + math.random(-10, 10), 0)
setTimer(setPedControlState, 1000, 1, a, "fire", true)
end
setTimer(drainSomeWater, 50, 35000)
end
setTimer(part2, 2000, 1)
function drainSomeWater()
level = level + 0.1
setWaterLevel ( water, level )
end
Expected behavior
no crash
Screenshots
Crash dump:
https://bugs.mtasa.com/file_download.php?file_id=1421&type=bug
MTA Client (please complete the following information):
v1.5.5-release-13182.
MTA Server (please complete the following information):
n/a
Additional context
https://bugs.mtasa.com/view.php?id=5693
The text was updated successfully, but these errors were encountered: