Turbe$Z

[HELP] Why not working scrolling in scoreboard?

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 

Share this post


Link to post

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

Share this post


Link to post
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

Share this post


Link to post

the 'i' value is = "1
                             2"

Maybe this is the problem.. how to convert this only to 2?

Edited by Turbo777

Share this post


Link to post

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.