Wysłany: 2014-06-22, 18:18
adwokatPL
*Uczę się*
Wiek: 25 Na forum: 4540 dni Posty: 59
Nick w MP: Skibcus
GUIEditor = {
tab = {},
staticimage = {},
tabpanel = {},
label = {},
window = {}
}
addEventHandler ( "onClientResourceStart" , resourceRoot ,
function()
GUIEditor . window [ 1 ] = guiCreateWindow ( 6 , 3 , 1008 , 700 , "Panel Pomocy dla Policji" , false )
guiWindowSetSizable ( GUIEditor . window [ 1 ], false )
GUIEditor . tabpanel [ 1 ] = guiCreateTabPanel ( 9 , 19 , 989 , 671 , false , GUIEditor . window [ 1 ])
GUIEditor . tab [ 1 ] = guiCreateTab ( "SAPD" , GUIEditor . tabpanel [ 1 ])
GUIEditor . staticimage [ 1 ] = guiCreateStaticImage ( 260 , 197 , 500 , 206 , ":PPP/images/poli.png" , false , GUIEditor . tab [ 1 ])
GUIEditor . tab [ 2 ] = guiCreateTab ( "Regulamin Funkcjonariusza" , GUIEditor . tabpanel [ 1 ])
GUIEditor . label [ 1 ] = guiCreateLabel ( 3 , 2 , 976 , 639 , "Regulamin funkcjonariusza SAPD" , false , GUIEditor . tab [ 2 ])
GUIEditor . tab [ 3 ] = guiCreateTab ( "|-|-|" , GUIEditor . tabpanel [ 1 ])
GUIEditor . label [ 2 ] = guiCreateLabel ( 315 , 190 , 394 , 70 , "Materialy do nauki" , false , GUIEditor . tab [ 3 ])
guiSetFont ( GUIEditor . label [ 2 ], "sa-gothic" )
GUIEditor . tab [ 4 ] = guiCreateTab ( "Manewr PIT" , GUIEditor . tabpanel [ 1 ])
GUIEditor . label [ 3 ] = guiCreateLabel ( 12 , 6 , 967 , 42 , "Manewr PIT jest to taktyka powoduj?ca utrat? kontroli nad pojazdem i zmusza podejrzanego do zatrzymania.
\nPolega na lekkim zetkni?ciu obu pojazd?w: prawym b?d? lewym przednim zderzakiem z tylnym prawym b?d? lewym zderzakiem. " , false , GUIEditor . tab [ 4 ])
guiLabelSetHorizontalAlign ( GUIEditor . label [ 3 ], "center" , false )
guiLabelSetVerticalAlign ( GUIEditor . label [ 3 ], "center" )
GUIEditor . staticimage [ 2 ] = guiCreateStaticImage ( 403 , 84 , 211 , 401 , ":PPP/images/pit.png" , false , GUIEditor . tab [ 4 ])
GUIEditor . label [ 4 ] = guiCreateLabel ( 17 , 553 , 958 , 66 , "Dzi?ki temu tylnie ko?a celu trac? przyczepno??, pojazd wpada w po?lizg, co powoduj? zatrzymanie si? ?ciganego." , false , GUIEditor . tab [ 4 ])
guiLabelSetHorizontalAlign ( GUIEditor . label [ 4 ], "center" , false )
guiLabelSetVerticalAlign ( GUIEditor . label [ 4 ], "center" )
GUIEditor . tab [ 5 ] = guiCreateTab ( "Kody policyjne" , GUIEditor . tabpanel [ 1 ])
GUIEditor . label [ 5 ] = guiCreateLabel ( 5 , 1 , 978 , 636 , "Kody g??wne" , false , GUIEditor . tab [ 5 ])
GUIEditor . tab [ 6 ] = guiCreateTab ( "Dyspozytornia" , GUIEditor . tabpanel [ 1 ])
GUIEditor . label [ 6 ] = guiCreateLabel ( 4 , 1 , 979 , 404 , "Dyspozytornia"", false, GUIEditor.tab[6])
GUIEditor.tab[7] = guiCreateTab(" Kontrole Drogowe ", GUIEditor.tabpanel[1])
GUIEditor.label[7] = guiCreateLabel(2, 1, 982, 640, " Zatrzymanie ... ", false, GUIEditor.tab[7])
GUIEditor.tab[8] = guiCreateTab(" Sk ? ad SAPD ", GUIEditor.tabpanel[1])
GUIEditor.label[8] = guiCreateLabel(4, 2, 981, 640, " Sk ? ad LVPD : ", false, GUIEditor.tab[8])
end
)
bindKey(" i "," down ", function()
if not GUIEditor.window[1] then return end
if guiGetVisible(GUIEditor.window[1]) then
guiSetVisible(GUIEditor.window[1], true)
showCursor(true)
else
guiSetVisible(GUIEditor.window[1], false)
showCursor(false)
end
end)
Wysłany: 2014-06-22, 18:20
MeeShuffle
Programista/Grafik
Wiek: 32 Na forum: 4395 dni Posty: 2758
Nick w MP: Shuffle
Piwa : 8575
GUIEditor = {
tab = {},
staticimage = {},
tabpanel = {},
label = {},
window = {}
}
GUIEditor . window [ 1 ] = guiCreateWindow ( 6 , 3 , 1008 , 700 , "Panel Pomocy dla Policji" , false )
guiWindowSetSizable ( GUIEditor . window [ 1 ], false )
guiSetVisible ( GUIEditor . window [ 1 ], false )
GUIEditor . tabpanel [ 1 ] = guiCreateTabPanel ( 9 , 19 , 989 , 671 , false , GUIEditor . window [ 1 ])
GUIEditor . tab [ 1 ] = guiCreateTab ( "SAPD" , GUIEditor . tabpanel [ 1 ])
GUIEditor . staticimage [ 1 ] = guiCreateStaticImage ( 260 , 197 , 500 , 206 , ":PPP/images/poli.png" , false , GUIEditor . tab [ 1 ])
GUIEditor . tab [ 2 ] = guiCreateTab ( "Regulamin Funkcjonariusza" , GUIEditor . tabpanel [ 1 ])
GUIEditor . label [ 1 ] = guiCreateLabel ( 3 , 2 , 976 , 639 , "Regulamin funkcjonariusza SAPD" , false , GUIEditor . tab [ 2 ])
GUIEditor . tab [ 3 ] = guiCreateTab ( "|-|-|" , GUIEditor . tabpanel [ 1 ])
GUIEditor . label [ 2 ] = guiCreateLabel ( 315 , 190 , 394 , 70 , "Materialy do nauki" , false , GUIEditor . tab [ 3 ])
guiSetFont ( GUIEditor . label [ 2 ], "sa-gothic" )
GUIEditor . tab [ 4 ] = guiCreateTab ( "Manewr PIT" , GUIEditor . tabpanel [ 1 ])
GUIEditor . label [ 3 ] = guiCreateLabel ( 12 , 6 , 967 , 42 , "Manewr PIT jest to taktyka powoduj?ca utrat? kontroli nad pojazdem i zmusza podejrzanego do zatrzymania.
\nPolega na lekkim zetkni?ciu obu pojazd?w: prawym b?d? lewym przednim zderzakiem z tylnym prawym b?d? lewym zderzakiem. " , false , GUIEditor . tab [ 4 ])
guiLabelSetHorizontalAlign ( GUIEditor . label [ 3 ], "center" , false )
guiLabelSetVerticalAlign ( GUIEditor . label [ 3 ], "center" )
GUIEditor . staticimage [ 2 ] = guiCreateStaticImage ( 403 , 84 , 211 , 401 , ":PPP/images/pit.png" , false , GUIEditor . tab [ 4 ])
GUIEditor . label [ 4 ] = guiCreateLabel ( 17 , 553 , 958 , 66 , "Dzi?ki temu tylnie ko?a celu trac? przyczepno??, pojazd wpada w po?lizg, co powoduj? zatrzymanie si? ?ciganego." , false , GUIEditor . tab [ 4 ])
guiLabelSetHorizontalAlign ( GUIEditor . label [ 4 ], "center" , false )
guiLabelSetVerticalAlign ( GUIEditor . label [ 4 ], "center" )
GUIEditor . tab [ 5 ] = guiCreateTab ( "Kody policyjne" , GUIEditor . tabpanel [ 1 ])
GUIEditor . label [ 5 ] = guiCreateLabel ( 5 , 1 , 978 , 636 , "Kody g??wne" , false , GUIEditor . tab [ 5 ])
GUIEditor . tab [ 6 ] = guiCreateTab ( "Dyspozytornia" , GUIEditor . tabpanel [ 1 ])
GUIEditor . label [ 6 ] = guiCreateLabel ( 4 , 1 , 979 , 404 , "Dyspozytornia"", false, GUIEditor.tab[6])
GUIEditor.tab[7] = guiCreateTab(" Kontrole Drogowe ", GUIEditor.tabpanel[1])
GUIEditor.label[7] = guiCreateLabel(2, 1, 982, 640, " Zatrzymanie ... ", false, GUIEditor.tab[7])
GUIEditor.tab[8] = guiCreateTab(" Sk ? ad SAPD ", GUIEditor.tabpanel[1])
GUIEditor.label[8] = guiCreateLabel(4, 2, 981, 640, " Sk ? ad LVPD : ", false, GUIEditor.tab[8])
bindKey(" i "," down ", function()
if not GUIEditor.window[1] then return end
if guiGetVisible(GUIEditor.window[1]) then
guiSetVisible(GUIEditor.window[1], true)
showCursor(true)
else
guiSetVisible(GUIEditor.window[1], false)
showCursor(false)
end
end) Spr?buj.
Wysłany: 2014-06-22, 18:27
MeeShuffle
Programista/Grafik
Wiek: 32 Na forum: 4395 dni Posty: 2758
Nick w MP: Shuffle
Piwa : 8575
Wysłany: 2014-06-22, 18:30
McDeKi
Wiek: 28 Na forum: 4844 dni Posty: 95
Nick w MP: McDeKi
Piwa : 186
GUIEditor = {
tab = {},
staticimage = {},
tabpanel = {},
label = {},
window = {}
}
GUIEditor . window [ 1 ] = guiCreateWindow ( 6 , 3 , 1008 , 700 , "Panel Pomocy dla Policji" , false )
guiWindowSetSizable ( GUIEditor . window [ 1 ], false )
guiSetVisible ( GUIEditor . window [ 1 ], false )
GUIEditor . tabpanel [ 1 ] = guiCreateTabPanel ( 9 , 19 , 989 , 671 , false , GUIEditor . window [ 1 ])
GUIEditor . tab [ 1 ] = guiCreateTab ( "SAPD" , GUIEditor . tabpanel [ 1 ])
GUIEditor . staticimage [ 1 ] = guiCreateStaticImage ( 260 , 197 , 500 , 206 , ":PPP/images/poli.png" , false , GUIEditor . tab [ 1 ])
GUIEditor . tab [ 2 ] = guiCreateTab ( "Regulamin Funkcjonariusza" , GUIEditor . tabpanel [ 1 ])
GUIEditor . label [ 1 ] = guiCreateLabel ( 3 , 2 , 976 , 639 , "Regulamin funkcjonariusza SAPD" , false , GUIEditor . tab [ 2 ])
GUIEditor . tab [ 3 ] = guiCreateTab ( "|-|-|" , GUIEditor . tabpanel [ 1 ])
GUIEditor . label [ 2 ] = guiCreateLabel ( 315 , 190 , 394 , 70 , "Materialy do nauki" , false , GUIEditor . tab [ 3 ])
guiSetFont ( GUIEditor . label [ 2 ], "sa-gothic" )
GUIEditor . tab [ 4 ] = guiCreateTab ( "Manewr PIT" , GUIEditor . tabpanel [ 1 ])
GUIEditor . label [ 3 ] = guiCreateLabel ( 12 , 6 , 967 , 42 , "Manewr PIT jest to taktyka powoduj?ca utrat? kontroli nad pojazdem i zmusza podejrzanego do zatrzymania.
\nPolega na lekkim zetkni?ciu obu pojazd?w: prawym b?d? lewym przednim zderzakiem z tylnym prawym b?d? lewym zderzakiem. " , false , GUIEditor . tab [ 4 ])
guiLabelSetHorizontalAlign ( GUIEditor . label [ 3 ], "center" , false )
guiLabelSetVerticalAlign ( GUIEditor . label [ 3 ], "center" )
GUIEditor . staticimage [ 2 ] = guiCreateStaticImage ( 403 , 84 , 211 , 401 , ":PPP/images/pit.png" , false , GUIEditor . tab [ 4 ])
GUIEditor . label [ 4 ] = guiCreateLabel ( 17 , 553 , 958 , 66 , "Dzi?ki temu tylnie ko?a celu trac? przyczepno??, pojazd wpada w po?lizg, co powoduj? zatrzymanie si? ?ciganego." , false , GUIEditor . tab [ 4 ])
guiLabelSetHorizontalAlign ( GUIEditor . label [ 4 ], "center" , false )
guiLabelSetVerticalAlign ( GUIEditor . label [ 4 ], "center" )
GUIEditor . tab [ 5 ] = guiCreateTab ( "Kody policyjne" , GUIEditor . tabpanel [ 1 ])
GUIEditor . label [ 5 ] = guiCreateLabel ( 5 , 1 , 978 , 636 , "Kody g??wne" , false , GUIEditor . tab [ 5 ])
GUIEditor . tab [ 6 ] = guiCreateTab ( "Dyspozytornia" , GUIEditor . tabpanel [ 1 ])
GUIEditor . label [ 6 ] = guiCreateLabel ( 4 , 1 , 979 , 404 , "Dyspozytornia" , false , GUIEditor . tab [ 6 ])
GUIEditor . tab [ 7 ] = guiCreateTab ( "Kontrole Drogowe" , GUIEditor . tabpanel [ 1 ])
GUIEditor . label [ 7 ] = guiCreateLabel ( 2 , 1 , 982 , 640 , "Zatrzymanie..." , false , GUIEditor . tab [ 7 ])
GUIEditor . tab [ 8 ] = guiCreateTab ( "Sk?ad SAPD" , GUIEditor . tabpanel [ 1 ])
GUIEditor . label [ 8 ] = guiCreateLabel ( 4 , 2 , 981 , 640 , "Sk?ad LVPD: " , false , GUIEditor . tab [ 8 ])
bindKey ( "i" , "down" , function()
if not GUIEditor . window [ 1 ] then return end
if guiGetVisible ( GUIEditor . window [ 1 ]) then
guiSetVisible ( GUIEditor . window [ 1 ], true )
showCursor ( true )
else
guiSetVisible ( GUIEditor . window [ 1 ], false )
showCursor ( false )
end
end )
Wysłany: 2014-06-22, 18:33
MeeShuffle
Programista/Grafik
Wiek: 32 Na forum: 4395 dni Posty: 2758
Nick w MP: Shuffle
Piwa : 8575
McDeKi , jezus sory Tyle na g?owie, ?e mieszam si?.
[ Dodano : 2014-06-22, 18:33 ]
Co to wgl jest ?
if not GUIEditor . window [ 1 ] then return end
Wysłany: 2014-06-22, 18:34
adwokatPL
*Uczę się*
Wiek: 25 Na forum: 4540 dni Posty: 59
Nick w MP: Skibcus
Kod:
WARNING: Script'PPP\panel.lua' is not encoded in UTF-8.Loading as ANSI...
ERROR: Loading script failed : PPP\panel.lua:32: unfinished string near'"Manewr PIT jest to taktyka powoduj?ca utrat? kontroli nad pojazdem i zmusza podejrzanego do zatrzymania. '
Wysłany: 2014-06-22, 18:35
MeeShuffle
Programista/Grafik
Wiek: 32 Na forum: 4395 dni Posty: 2758
Nick w MP: Shuffle
Piwa : 8575
adwokatPL , 1 b??d to kodowanie, w npp musisz je zmieni? na UTF-8.
Drugi b??d to to :
UIEditor . label [ 3 ] = guiCreateLabel ( 12 , 6 , 967 , 42 , "Manewr PIT jest to taktyka powoduj?ca utrat? kontroli nad pojazdem i zmusza podejrzanego do zatrzymania.
\nPolega na lekkim zetkni?ciu obu pojazd?w: prawym b?d? lewym przednim zderzakiem z tylnym prawym b?d? lewym zderzakiem. " , false , GUIEditor . tab [ 4 ]) Nie mo?esz da? w dw?ch linijkach. Ca?y tekst musi by? w jednej.
Wysłany: 2014-06-22, 18:38
adwokatPL
*Uczę się*
Wiek: 25 Na forum: 4540 dni Posty: 59
Nick w MP: Skibcus
W db3 nic ju? nie ma a nie wiem o co chodzi z tym
Kod: 1 b??d to kodowanie, w npp musisz je zmieni? na UTF-8.
Wysłany: 2014-06-22, 18:39
MeeShuffle
Programista/Grafik
Wiek: 32 Na forum: 4395 dni Posty: 2758
Nick w MP: Shuffle
Piwa : 8575
adwokatPL , Notepad ++ To program taki. W nim na g?rze klikasz FORMAT i Konwertuj na UTF-8.
Wysłany: 2014-06-22, 20:18
adwokatPL
*Uczę się*
Wiek: 25 Na forum: 4540 dni Posty: 59
Nick w MP: Skibcus
Maszyna nadal nic pr?buj? ju? chyba 500 raz
Wysłany: 2014-06-22, 20:20
MeeShuffle
Programista/Grafik
Wiek: 32 Na forum: 4395 dni Posty: 2758
Nick w MP: Shuffle
Piwa : 8575
Tagi: czemu :: nie :: działa :: bind?
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: