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: 4329 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(1362731650629"Wybierz team"false)
        guiWindowSetSizable(GUIEditor.window[1], false)
        guiSetProperty(GUIEditor.window[1], "CaptionColour""FF0750F7")
        showCursor (trueGUIEditor.window[1])
        
         GUIEditor.button[1] = guiCreateButton(1531491579"S.W.A.T"falseGUIEditor.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(114531491579"Wojsko"falseGUIEditor.window[1])
        guiSetFont(GUIEditor.button[2], "sa-gothic")
        guiSetProperty(GUIEditor.button[2], "NormalTextColour""FF604939")
        GUIEditor.tabpanel[1] = guiCreateTabPanel(52539576198falseGUIEditor.window[1])  

 function dajo()
 triggerServerEvent "wojsko"root )
end
addEventHandler ("onClientGUIClick"GUIEditor.button[2],dajo)
        
        
        GUIEditor.tabpanel[1] = guiCreateTabPanel(52539576198falseGUIEditor.window[1])

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

        GUIEditor.label[1] = guiCreateLabel(911525132"S.W.A.T:Bronie : M4,MP5,Deagle"falseGUIEditor.tab[1])
        guiSetFont(GUIEditor.label[1], "sa-header")
        guiLabelSetColor(GUIEditor.label[1], 6760228)
        guiLabelSetHorizontalAlign(GUIEditor.label[1], "left"true)

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

        GUIEditor.label[2] = guiCreateLabel(46555150"Wojsko:Bronie : M4,MP5,Deagle"falseGUIEditor.tab[2])
        guiSetFont(GUIEditor.label[2], "sa-header")
        guiLabelSetColor(GUIEditor.label[2], 10010943)
        guiLabelSetHorizontalAlign(GUIEditor.label[2], "left"true)

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

        GUIEditor.label[3] = guiCreateLabel(32503162"S.W.A.T : 285 Wojsko : 287"falseGUIEditor.tab[3])
        guiSetFont(GUIEditor.label[3], "sa-header")
        guiLabelSetColor(GUIEditor.label[3], 539891)
        guiLabelSetHorizontalAlign(GUIEditor.label[3], "left"true)    
    end
)

s-side
function teama()                        
setPlayerTeam sourceSWAT )
setPedSkin source285)
giveWeapon thePlayer315000 giveWeapon thePlayer245000 giveWeapon thePlayer295000 )  
spawnPlayer thePlayer, -1351.080078125490.5585937518.227842330933 )
end
addEvent"swat"true )
addEventHandler"swat"rootteama)

function teamb()                       
  setPlayerTeam sourceWojsko )
  setPedSkin source287 )
giveWeapon thePlayer315000 giveWeapon thePlayer245000 giveWeapon thePlayer295000 spawnPlayer thePlayer, -1283.86218261722513.210205078187.040603627695  )
end
addEvent"wojsko"true )
addEventHandler"wojsko"rootteamb)

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: 6718 dni
Posty: 567

Piwa: 17560

Respekt: 160
Respekt: 160Respekt: 160

To
showCursor (trueGUIEditor.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: 4313 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: 32
Na forum: 4395 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

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 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