Turbe$Z Posted August 13, 2019 Posted August 13, 2019 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: how can i fix this?.. :s My Fun server: My DD server:
Dimos7 Posted August 14, 2019 Posted August 14, 2019 You have any error or warnings in /debugscipt 3?
ShayF Posted August 14, 2019 Posted August 14, 2019 Try enabling the scrolling feature when you have more items than you can display on the scoreboard.
Turbe$Z Posted August 14, 2019 Author Posted August 14, 2019 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 My Fun server: My DD server:
Turbe$Z Posted August 14, 2019 Author Posted August 14, 2019 (edited) the 'i' value is = "1 2" Maybe this is the problem.. how to convert this only to 2? Edited August 14, 2019 by Turbo777 My Fun server: My DD server:
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now