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

Wysłany: 2014-09-20, 21:33


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4470 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

witam mam kod
i nic nie dziala
c-side
GUIEditor = {
    tab = {},
    tabpanel = {},
    label = {},
    button = {},
    window = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
        GUIEditor.window[1] = guiCreateWindow(136, 273, 1650, 629, "Wybierz team", false)
        guiWindowSetSizable(GUIEditor.window[1], false)
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF0750F7")
        showCursor (true, GUIEditor.window[1])
        
         GUIEditor.button[1] = guiCreateButton(15, 31, 491, 579, "S.W.A.T", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.button[1], "sa-gothic")
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF0226FB")
     function dajz ()
triggerServerEvent ( "swat", root )
end
addEventHandler ("onClientGUIClick", GUIEditor.button[1],dajz)

        GUIEditor.button[2] = guiCreateButton(1145, 31, 491, 579, "Wojsko", false, GUIEditor.window[1])
        guiSetFont(GUIEditor.button[2], "sa-gothic")
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF604939")
        GUIEditor.tabpanel[1] = guiCreateTabPanel(525, 39, 576, 198, false, GUIEditor.window[1])  

 function dajo()
 triggerServerEvent ( "wojsko", root )
end
addEventHandler ("onClientGUIClick", GUIEditor.button[2],dajo)
        
        
        GUIEditor.tabpanel[1] = guiCreateTabPanel(525, 39, 576, 198, false, GUIEditor.window[1])

        GUIEditor.tab[1] = guiCreateTab("S.W.A.T", GUIEditor.tabpanel[1])

        GUIEditor.label[1] = guiCreateLabel(9, 11, 525, 132, "S.W.A.T:Bronie : M4,MP5,Deagle", false, GUIEditor.tab[1])
        guiSetFont(GUIEditor.label[1], "sa-header")
        guiLabelSetColor(GUIEditor.label[1], 67, 60, 228)
        guiLabelSetHorizontalAlign(GUIEditor.label[1], "left", true)

        GUIEditor.tab[2] = guiCreateTab("Wojsko", GUIEditor.tabpanel[1])

        GUIEditor.label[2] = guiCreateLabel(4, 6, 555, 150, "Wojsko:Bronie : M4,MP5,Deagle", false, GUIEditor.tab[2])
        guiSetFont(GUIEditor.label[2], "sa-header")
        guiLabelSetColor(GUIEditor.label[2], 100, 109, 43)
        guiLabelSetHorizontalAlign(GUIEditor.label[2], "left", true)

        GUIEditor.tab[3] = guiCreateTab("Skiny", GUIEditor.tabpanel[1])

        GUIEditor.label[3] = guiCreateLabel(3, 2, 503, 162, "S.W.A.T : 285 Wojsko : 287", false, GUIEditor.tab[3])
        guiSetFont(GUIEditor.label[3], "sa-header")
        guiLabelSetColor(GUIEditor.label[3], 53, 98, 91)
        guiLabelSetHorizontalAlign(GUIEditor.label[3], "left", true)    
    end
)

s-side
function teama()                        
setPlayerTeam ( source, SWAT )
setPedSkin ( source, 285)
giveWeapon ( thePlayer, 31, 5000 ) 
giveWeapon ( thePlayer, 24, 5000 ) 
giveWeapon ( thePlayer, 29, 5000 )  
spawnPlayer ( thePlayer, -1351.080078125, 490.55859375, 18.227842330933 )
end
addEvent( "swat", true )
addEventHandler( "swat", root, teama)

function teamb()                       
  setPlayerTeam ( source, Wojsko )
  setPedSkin ( source, 287 )
giveWeapon ( thePlayer, 31, 5000 ) 
giveWeapon ( thePlayer, 24, 5000 ) 
giveWeapon ( thePlayer, 29, 5000 ) 
spawnPlayer ( thePlayer, -1283.8621826172, 2513.2102050781, 87.040603627695  )
end
addEvent( "wojsko", true )
addEventHandler( "wojsko", root, teamb)

meta:
<meta>

<script type="server" src="s-side.lua"/>
<script type="client" src="c-side.lua"/>

</meta>


[ Dodano: 2014-09-20, 21:36 ]
w sesie kursor myszki i jak nie dolacza do team?w

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-09-21, 10:51


KukiX







Wiek: 34
Na forum: 6859 dni
Posty: 567

Piwa: 17560

Respekt: 160
Respekt: 160Respekt: 160

To
showCursor (true, GUIEditor.window[1])
zmie? na
showCursor (true)

Dalej kodu nie czyta?em tylko to mi si? oczy rzuci?o.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-09-21, 16:20


Dixers

No-Life






Wiek: 26
Na forum: 4453 dni
Posty: 549
Nick w MP: Dixers

Piwa: 412

Respekt: 56,8

KukiX, ale jak zmieni na


showCursor (true)


to kursor b?dzie ci?gle na serwerze, jak tylko skrypt b?dzie dzia?a?.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-09-21, 17:20


MeeShuffle

Programista/Grafik






Wiek: 33
Na forum: 4535 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8578

Respekt: 535,3
Respekt: 535,3

Dixers, co za g?upota. Poczytaj troch? o podstawach.

Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Tagi: nie :: dziala
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » nie dziala 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