Wysłany: 2014-11-08, 21:15
Dixers
No-Life
Wiek: 26 Na forum: 4312 dni Posty: 549
Nick w MP: Dixers
Piwa : 412
Witam serdecznie. Co jest nie tak? T?o "monitor" si? nie pojawia, guiSetVisible nie dzia?a.
addEventHandler ( "onClientResourceStart" , resourceRoot ,
function()
monitor = guiCreateStaticImage ( 394 , 188 , 806 , 555 , ":monitor.png" , false )
guiSetVisible ( monitor , false )
zamknij = guiCreateButton ( 603 , 436 , 145 , 59 , "ZAMKNIJ SYSTEM" , false , monitor )
kamera1 = guiCreateButton ( 51 , 97 , 145 , 59 , "Kamera 1" , false , monitor )
kamera2 = guiCreateButton ( 51 , 182 , 145 , 59 , "Kamera 2" , false , monitor )
kamera3 = guiCreateButton ( 51 , 269 , 145 , 59 , "Kamera 3" , false , monitor )
kamera4 = guiCreateButton ( 211 , 97 , 145 , 59 , "Kamera 4" , false , monitor )
kamera5 = guiCreateButton ( 211 , 182 , 145 , 59 , "Kamera 5" , false , monitor )
alarm = guiCreateButton ( 502 , 97 , 145 , 59 , "Uruchom alarm OSP" , false , monitor )
wezwanie = guiCreateButton ( 502 , 181 , 145 , 59 , "Wezwij druh?w z OSP" , false , monitor )
kamera6 = guiCreateButton ( 211 , 269 , 145 , 59 , "Kamera 6" , false , monitor )
monitoring = guiCreateLabel ( 39 , 39 , 336 , 52 , "Monitoring:" , false , monitor )
guiSetFont ( monitoring , "sa-header" )
guiLabelSetColor ( monitoring , 0 , 0 , 0 )
napisAlarm = guiCreateLabel ( 470 , 39 , 336 , 52 , "Alarm:" , false , monitor )
guiSetFont ( napiszAlarm , "sa-header" )
guiLabelSetColor ( napiszAlarm , 0 , 0 , 0 )
end
)
ZA POMOC
Wiem, ?e to s? dziecinne b??dy, ale bardzo ?le si? czuj? i nie my?l?
Wysłany: 2014-11-09, 03:06
Maximerr
Programmer PHP, LUA
Wiek: 25 Na forum: 4427 dni Posty: 548
Piwa : 1051
Jak to nie dzia?a? Pod funkcj? guiCreateStaticImage masz zmienn? jego i false, co oznacza ukrycie okna.
Wysłany: 2014-11-09, 09:43
TheTroll
Pan Majster
Wiek: 38 Na forum: 4764 dni Posty: 219
Nick w MP: TheTroll
Piwa : 1114
Spr?buj tak
monitor = guiCreateStaticImage ( 394 , 188 , 806 , 555 , "monitor.png" , false )
Wysłany: 2014-11-09, 10:15
Dixers
No-Life
Wiek: 26 Na forum: 4312 dni Posty: 549
Nick w MP: Dixers
Piwa : 412
Mam tak i nadal si? nie pojawia monitor:
addEventHandler ( "onClientResourceStart" , resourceRoot ,
function()
monitor = guiCreateStaticImage ( 394 , 188 , 806 , 555 , ":monitor.png" , true )
zamknij = guiCreateButton ( 603 , 436 , 145 , 59 , "ZAMKNIJ SYSTEM" , false , monitor )
kamera1 = guiCreateButton ( 51 , 97 , 145 , 59 , "Kamera 1" , false , monitor )
kamera2 = guiCreateButton ( 51 , 182 , 145 , 59 , "Kamera 2" , false , monitor )
kamera3 = guiCreateButton ( 51 , 269 , 145 , 59 , "Kamera 3" , false , monitor )
kamera4 = guiCreateButton ( 211 , 97 , 145 , 59 , "Kamera 4" , false , monitor )
kamera5 = guiCreateButton ( 211 , 182 , 145 , 59 , "Kamera 5" , false , monitor )
alarm = guiCreateButton ( 502 , 97 , 145 , 59 , "Uruchom alarm OSP" , false , monitor )
wezwanie = guiCreateButton ( 502 , 181 , 145 , 59 , "Wezwij druh?w z OSP" , false , monitor )
kamera6 = guiCreateButton ( 211 , 269 , 145 , 59 , "Kamera 6" , false , monitor )
monitoring = guiCreateLabel ( 39 , 39 , 336 , 52 , "Monitoring:" , false , monitor )
guiSetFont ( monitoring , "sa-header" )
guiLabelSetColor ( monitoring , 0 , 0 , 0 )
napisAlarm = guiCreateLabel ( 470 , 39 , 336 , 52 , "Alarm:" , false , monitor )
guiSetFont ( napisAlarm , "sa-header" )
guiLabelSetColor ( napisAlarm , 0 , 0 , 0 )
end
)
A jak zmieni?em na to to w og?le nawet button?w nie ma:
monitor = guiCreateStaticImage ( 394 , 188 , 806 , 555 , "monitor.png" , false )
Wysłany: 2014-11-09, 10:18
MeeShuffle
Programista/Grafik
Wiek: 32 Na forum: 4395 dni Posty: 2758
Nick w MP: Shuffle
Piwa : 8575
Usu? addEventHandler i wszystkie endy przypasowane do niego.
Wysłany: 2014-11-09, 10:26
Dixers
No-Life
Wiek: 26 Na forum: 4312 dni Posty: 549
Nick w MP: Dixers
Piwa : 412
Oj nie. Jednak dzia?a. ?le skopiowa?em bo bez nawiasu Dzia?a. Otrzymujesz TheTroll ,
[ Dodano : 2014-11-09, 10:27 ]
Mam tak i dzia?a. Wszyscy dostaniecie piwo
addEventHandler ( "onClientResourceStart" , resourceRoot ,
function()
monitor = guiCreateStaticImage ( 394 , 188 , 806 , 555 , "monitor.png" , false )
zamknij = guiCreateButton ( 603 , 436 , 145 , 59 , "ZAMKNIJ SYSTEM" , false , monitor )
kamera1 = guiCreateButton ( 51 , 97 , 145 , 59 , "Kamera 1" , false , monitor )
kamera2 = guiCreateButton ( 51 , 182 , 145 , 59 , "Kamera 2" , false , monitor )
kamera3 = guiCreateButton ( 51 , 269 , 145 , 59 , "Kamera 3" , false , monitor )
kamera4 = guiCreateButton ( 211 , 97 , 145 , 59 , "Kamera 4" , false , monitor )
kamera5 = guiCreateButton ( 211 , 182 , 145 , 59 , "Kamera 5" , false , monitor )
alarm = guiCreateButton ( 502 , 97 , 145 , 59 , "Uruchom alarm OSP" , false , monitor )
wezwanie = guiCreateButton ( 502 , 181 , 145 , 59 , "Wezwij druh?w z OSP" , false , monitor )
kamera6 = guiCreateButton ( 211 , 269 , 145 , 59 , "Kamera 6" , false , monitor )
monitoring = guiCreateLabel ( 39 , 39 , 336 , 52 , "Monitoring:" , false , monitor )
guiSetFont ( monitoring , "sa-header" )
guiLabelSetColor ( monitoring , 0 , 0 , 0 )
napisAlarm = guiCreateLabel ( 470 , 39 , 336 , 52 , "Alarm:" , false , monitor )
guiSetFont ( napisAlarm , "sa-header" )
guiLabelSetColor ( napisAlarm , 0 , 0 , 0 )
end
)
Tagi: gui
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: