Wysłany: 2013-01-03, 18:01
luki123luki123
Place Game
Wiek: 28 Na forum: 5275 dni Posty: 1948
Nick w MP: LuKiO
Piwa : 6101
Sorki ?e pisz? na taki prosty problem ale mia?em przerw? i nie mam nic na kompie od pr?cz moje oryginalnego panelu lidera tylko on jest na 1 frakcje i chce to zrobi? na tabele . je?eli mi kto? pomo?e daje piwka
[ Dodano : 2013-01-03, 18:07 ]
Kawa?ki skryptu:
Kod: Policja = {LiderPolicji, Policja}
Pogotowie = {LiderPogotowia, Pogotowie}
Urz?d = {LiderUrz?du, Urz?d}
Bank = {LiderBanku, Bank}
Kod: function Pokaz5()
guiGridListClear(GUIEditor_Grid[1])
for id, playeritem in ipairs(getElementsByType("player")) do
local row = guiGridListAddRow ( GUIEditor_Grid[1] )
guiGridListSetItemText ( GUIEditor_Grid[1], row, kolumna, getPlayerName ( playeritem ), false, false )
end
guiSetVisible(GUIEditor_Window[1], true)
showCursor(true)
end
addEvent("pokaz5", true)
addEventHandler("pokaz5", getRootElement(), Pokaz5)
function dodaj5()
local gracz = guiGridListGetItemText (GUIEditor_Grid[1], guiGridListGetSelectedItem (GUIEditor_Grid[1]), 1)
if gracz ~= "" then
triggerServerEvent("dodaj5", getRootElement(), gracz)
end
end
addEventHandler ( "onClientGUIClick", GUIEditor_Button[1], dodaj5, false )
function usun5()
local gracz = guiGridListGetItemText (GUIEditor_Grid[1], guiGridListGetSelectedItem (GUIEditor_Grid[1]), 1)
if gracz ~= "" then
triggerServerEvent("usun5", getRootElement(), gracz)
end
end
addEventHandler ( "onClientGUIClick", GUIEditor_Button[2], usun5, false )
Tylko w clinet pom??cie a ja dam rade z serwerem
Wysłany: 2013-01-04, 21:46
pidbulxd
Wiek: 28 Na forum: 5230 dni Posty: 135
Nick w MP: Word
Piwa : 540
function Pokaz5 ()
guiGridListClear ( GUIEditor_Grid [ 1 ])
for id , playeritem in ipairs ( getElementsByType ( "player" )) do
local row = guiGridListAddRow ( GUIEditor_Grid [ 1 ] )
guiGridListSetItemText ( GUIEditor_Grid [ 1 ], row , kolumna , getPlayerName ( playeritem ), false , false )
end
guiSetVisible ( GUIEditor_Window [ 1 ], true )
showCursor ( true )
end
addEvent ( "pokaz5" , true )
addEventHandler ( "pokaz5" , getRootElement (), Pokaz5 )
function dodaj5 ()
local gracz = guiGridListGetItemText ( GUIEditor_Grid [ 1 ], guiGridListGetSelectedItem ( GUIEditor_Grid [ 1 ]), 1 )
if gracz ~= "" then
triggerServerEvent ( "dodaj5" , getRootElement (), gracz )
end
end
addEventHandler ( "onClientGUIClick" , GUIEditor_Button [ 1 ], dodaj5 , false )
function usun5 ()
local gracz = guiGridListGetItemText ( GUIEditor_Grid [ 1 ], guiGridListGetSelectedItem ( GUIEditor_Grid [ 1 ]), 1 )
if gracz ~= "" then
triggerServerEvent ( "usun5" , getRootElement (), gracz )
end
end
addEventHandler ( "onClientGUIClick" , GUIEditor_Button [ 2 ], usun2 , false )
function close5 ()
guiSetVisible ( GUIEditor_Window [ 1 ], false )
showCursor ( false )
end
addEventHandler ( "onClientGUIClick" , GUIEditor_Button [ 3 ], close5 , false ) Twoje tak ? Jest to kod, z mojego i HartHola panelu lider policji
Wysłany: 2013-01-04, 23:35
Oski
LUA Scripter
Wiek: 30 Na forum: 5246 dni Posty: 428
Nick w MP: Oski
Piwa : 56
A nie lepiej sobie zrobic w xml te deficje lider?w?
<data>
<lider login="x" frakcja="x"
<lider login="x2" frakcja="x2"
</data>
a pozniej korzystasz z umiejetnosci pobierania xml byloby to latwiejsze moim zdaniem
Wysłany: 2013-01-05, 12:10
luki123luki123
Place Game
Wiek: 28 Na forum: 5275 dni Posty: 1948
Nick w MP: LuKiO
Piwa : 6101
Ja nie ummie xml uruchamia? tworzy? tabele xml ummie ale ?eby ?adowa?o z xml to nie ummie
Tagi: tabela :: lider :: panel
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: