Jump to content

[HELP] Why not working scrolling in scoreboard?


Turbe$Z

Recommended Posts

This is the code:

local normalScoreGorget = 0
local maxMegjelenit = 1

--------------------

for i, row in pairs(scoreboard_rows) do
		if (i > normalScoreGorget and elem < maxMegjelenit) then
			elem = elem + 1
			if getElementType(row) == "player" then
				---DX things here........
			elseif getElementType(row) == "team" then
				---DX things here........
			end
		end
	end
end

bindKey("mouse_wheel_down", "down", 
	function() 
			if normalScoreGorget < #scoreboard_rows - maxMegjelenit then
				normalScoreGorget = normalScoreGorget + 1	
end
		end
)

bindKey("mouse_wheel_up", "down", 
	function() 
			if normalScoreGorget > 0 then
				normalScoreGorget = normalScoreGorget - 1		
			end
	end
)

This is the bug:

EjBgzYg.png

how can i fix this?.. :s 

Link to comment
5 hours ago, Dimos7 said:

You have any error or warnings in /debugscipt 3? 

No errors/warnings

1 hour ago, ShayF said:

Try enabling the scrolling feature when you have more items than you can display on the scoreboard.

How? I dont understand this :s

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...