StUNt71 Posted September 25, 2011 Posted September 25, 2011 Создаю его, а он не отображается, хотя элемент есть. Сейчас попробую переустановить МТА, отпишусь.
StUNt71 Posted September 25, 2011 Author Posted September 25, 2011 Делал как в примере показано. addEventHandler("onClientResourceStart",resourceRoot, function() -- create a window and create a scrollpane on it local window = guiCreateWindow(5,5,130,150,"",false) -- the width and height values here are largely irrelevant as the scrollpane will automatically resize when needed scrollpane = guiCreateScrollPane(0,0,130,150,false,window) end ) addCommandHandler("fill", function() -- if the scrollpane exists if scrollpane then -- delete all the existing labels for i,v in ipairs(getElementChildren(scrollpane)) do destroyElement(v) end -- for every player in the server for i,v in ipairs(getElementsByType("player")) do -- create a label with their name on the scrollpane guiCreateLabel(5,i*20,90,20,tostring(getPlayerName(v)),false,scrollpane) end end end )
StUNt71 Posted November 14, 2011 Author Posted November 14, 2011 Вопрос решён, не точно понял перевод гугла о функции.
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