Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2016-06-27, 10:33


Atroth







Wiek: 24
Na forum: 3818 dni
Posty: 1089
Nick w MP: Atroth

Piwa: 4813

Respekt: 540
Respekt: 540

Prosz? wszystko z dok?adno?ci? sprawdzi?. Dzi?kuje.


function guiGridListAddPlayers( GridList, Column, Section, Number )
        if( getElementType( GridList ) == "gui-gridlist" ) then
        assert( tonumber( Column ), "Bad argument @ 'guiGridListAddPlayers' [Expected number at argument 2, got " .. tostring(Column) .. "]" )
                if( Section == false or Section == true ) then
                        if( Number == false or Number == true ) then
                                for _, player in ipairs( getElementsByType('player') ) do
                                        guiGridListClear( GridList )
                                                local Row = guiGridListAddRow( GridList )
                                                guiGridListSetItemText( GridList, Row, Column, getPlayerName(player), Section, Number )
                                                end 
                                        else
                                        error("Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 4, got " .. tostring(Number) .. "]")
                                end
                        else
                        error("Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 3, got " .. tostring(Section) .. "]")
                end
        end
        end

function guiGridListGetSelectedItemText ( gridList, column )
    local item = guiGridListGetSelectedItem ( gridList )
    if item then
        return guiGridListGetItemText ( gridList, item, column or 1 )
    end
    return false
    end


function gui(plr,cmd)
GUIEditor = {
    gridlist = {},
    window = {},
    button = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
        GUI = guiCreateWindow(329, 141, 483, 549, "Panel moderatora by @Endo", false)
        guiWindowSetSizable(GUI, false)

        gridlista = guiCreateGridList(10, 24, 192, 350, false, GUI)
        kolumna = guiGridListAddColumn(gridlista, "Gracze", 0.8)
        prz1 = guiCreateButton(262, 47, 203, 65, "Kopnij", false, GUI)
        prz2 = guiCreateButton(263, 134, 202, 79, "Mute", false, GUI)
        prz3 = guiCreateButton(261, 247, 204, 81, "Ostrze?enie", false, GUI)    
    end
)
addEventHandler("p_m", gui)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-06-27, 12:26


olo12345







Wiek: 31
Na forum: 3857 dni
Posty: 66
Nick w MP: olo1205

Piwa: 3

Respekt: 45,3

A w grze ci dzia?a?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-06-27, 12:56


Jacob

Głupiomądry






Wiek: 28
Na forum: 5643 dni
Posty: 967
Nick w MP: Jacob

Piwa: 786

Respekt: 212,3
Respekt: 212,3Respekt: 212,3

Sprawdzi?? To Ty masz to sprawdzi? i liczy? na ew. pomoc je?eli wyst?pi? b??dy. :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-06-27, 16:08


Atroth







Wiek: 24
Na forum: 3818 dni
Posty: 1089
Nick w MP: Atroth

Piwa: 4813

Respekt: 540
Respekt: 540

Mo?na zamkn??.

Podpis

Użytkownik - 10-05-2016
Support Team - 17.06.2017
Moderator - 25.11.2017
Mod-Team - 02.07.2018

Postaw piwo autorowi tego posta
 

 
Tagi: czy :: będzie :: coś :: takiego :: działać?
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku