Wysłany: 2013-03-23, 15:05
monio
Wiek: 30 Na forum: 4887 dni Posty: 319
Nick w MP: Monio99
Piwa : 3565
B??d w 6 linijce pomozecie ?
Cytat: GUIEditor_Window = {}
GUIEditor_Button = {}
GUIEditor_Label = {}
GUIEditor_Window[1] = guiCreateWindow(745,414,341,257,"Kontrola_wagi_by_Monio ",false
guiSetVisible (GUIEditor_Window[1], false)
guiWindowSetSizable(GUIEditor_Window[1], false)
GUIEditor_Label[1] = guiCreateLabel(0.0674,0.0973,0.2727,0.1167,"Auto:",true,GUIEditor_Window[1])
guiSetFont(GUIEditor_Label[1],"default-bold-small")
GUIEditor_Label[2] = guiCreateLabel(0.0557,0.2296,0.1848,0.1012,"Waga:",true,GUIEditor_Window[1])
guiSetFont(GUIEditor_Label[2],"default-bold-small")
GUIEditor_Label[3] = guiCreateLabel(0.0411,0.3346,0.2111,0.1012,"wlasciciel:",true,GUIEditor_Window[1])
guiSetFont(GUIEditor_Label[3],"default-bold-small")
GUIEditor_Button[1] = guiCreateButton(0.2874,0.5992,0.4076,0.2374,"WYJSCIE",true,GUIEditor_Window[1])
guiSetFont(GUIEditor_Button[1],"default-bold-small")
local theMarker = createMarker ( -2060.1584472656, 77.923889160156, 28.390625, "cylinder", 5, 255, 255, 255, 255 )
function markerHit( hitElement )
local vehicle = getPedOccupiedVehicle( hitElement )
Wysłany: 2013-03-23, 15:14
luki123luki123
Place Game
Wiek: 28 Na forum: 5275 dni Posty: 1948
Nick w MP: LuKiO
Piwa : 6101
liter?wka :
GUIEditor_Window [ 1 ] = guiCreateWindow ( 745 , 414 , 341 , 257 , Kontrola_wagi_by_Monio , false
poprawione
GUIEditor_Window [ 1 ] = guiCreateWindow ( 745 , 414 , 341 , 257 , Kontrola_wagi_by_Monio , false )
[ Dodano : 2013-03-23, 15:17 ]
R?b w Notepad ++ programie http://www.dobreprogramy....dows,12986.html
Wysłany: 2013-03-23, 15:19
monio
Wiek: 30 Na forum: 4887 dni Posty: 319
Nick w MP: Monio99
Piwa : 3565
"luki123luki123" napisał/a :liter?wka :
GUIEditor_Window [ 1 ] = guiCreateWindow ( 745 , 414 , 341 , 257 , Kontrola_wagi_by_Monio , false
poprawione
GUIEditor_Window [ 1 ] = guiCreateWindow ( 745 , 414 , 341 , 257 , Kontrola_wagi_by_Monio , false )
[ Dodano : 2013-03-23, 15:17 ]
R?b w Notepad ++ programie http://www.dobreprogramy....dows,12986.html
file://localhost/C:/Users/jasiek/Desktop/Bez?tytu?u.png
Prosz? zdj?cie i jest b??d w 5 linice
Notepada++mam ale nie widze takich b??d?w
Wysłany: 2013-03-23, 15:43
Brzysiek
Skrypter pralek
Wiek: 27 Na forum: 5198 dni Posty: 488
Nick w MP: Brzysiek
Piwa : 1034
Cytat:
Serio XD_?
Poprawiony_kod,_zapomnia?e?_cudzys??w_pododawa?_:).
GUIEditor_Window = {}
GUIEditor_Button = {}
GUIEditor_Label = {}
GUIEditor_Window [ 1 ] = guiCreateWindow ( 745 , 414 , 341 , 257 , "Kontrola_wagi_by_Monio" , false )
guiSetVisible ( GUIEditor_Window [ 1 ], false )
guiWindowSetSizable ( GUIEditor_Window [ 1 ], false )
GUIEditor_Label [ 1 ] = guiCreateLabel ( 0.0674 , 0.0973 , 0.2727 , 0.1167 , "Auto:" , true , GUIEditor_Window [ 1 ])
guiSetFont ( GUIEditor_Label [ 1 ],default- bold - small )
GUIEditor_Label [ 2 ] = guiCreateLabel ( 0.0557 , 0.2296 , 0.1848 , 0.1012 , "Waga:" , true , GUIEditor_Window [ 1 ])
guiSetFont ( GUIEditor_Label [ 2 ],default- bold - small )
GUIEditor_Label [ 3 ] = guiCreateLabel ( 0.0411 , 0.3346 , 0.2111 , 0.1012 , "wlasciciel:" , true , GUIEditor_Window [ 1 ])
guiSetFont ( GUIEditor_Label [ 3 ],default- bold - small )
GUIEditor_Button [ 1 ] = guiCreateButton ( 0.2874 , 0.5992 , 0.4076 , 0.2374 , "WYJSCIE" , true , GUIEditor_Window [ 1 ])
guiSetFont ( GUIEditor_Button [ 1 ],default- bold - small )
Wysłany: 2013-03-23, 16:00
monio
Wiek: 30 Na forum: 4887 dni Posty: 319
Nick w MP: Monio99
Piwa : 3565
"Brzysiek" napisał/a : Cytat:
Serio XD_?
Poprawiony_kod,_zapomnia?e?_cudzys??w_pododawa?_:).
GUIEditor_Window = {}
GUIEditor_Button = {}
GUIEditor_Label = {}
GUIEditor_Window [ 1 ] = guiCreateWindow ( 745 , 414 , 341 , 257 , "Kontrola_wagi_by_Monio" , false )
guiSetVisible ( GUIEditor_Window [ 1 ], false )
guiWindowSetSizable ( GUIEditor_Window [ 1 ], false )
GUIEditor_Label [ 1 ] = guiCreateLabel ( 0.0674 , 0.0973 , 0.2727 , 0.1167 , "Auto:" , true , GUIEditor_Window [ 1 ])
guiSetFont ( GUIEditor_Label [ 1 ],default- bold - small )
GUIEditor_Label [ 2 ] = guiCreateLabel ( 0.0557 , 0.2296 , 0.1848 , 0.1012 , "Waga:" , true , GUIEditor_Window [ 1 ])
guiSetFont ( GUIEditor_Label [ 2 ],default- bold - small )
GUIEditor_Label [ 3 ] = guiCreateLabel ( 0.0411 , 0.3346 , 0.2111 , 0.1012 , "wlasciciel:" , true , GUIEditor_Window [ 1 ])
guiSetFont ( GUIEditor_Label [ 3 ],default- bold - small )
GUIEditor_Button [ 1 ] = guiCreateButton ( 0.2874 , 0.5992 , 0.4076 , 0.2374 , "WYJSCIE" , true , GUIEditor_Window [ 1 ])
guiSetFont ( GUIEditor_Button [ 1 ],default- bold - small )
b??d 5 linika
Wysłany: 2013-03-23, 16:06
Piorun
Wiek: 32 Na forum: 6712 dni Posty: 1837
Nick w MP: Piorun
Piwa : 516
monio , 5 linijk? wklej. Je?eli pierwsze 4 argumenty to liczby ca?kowite, nast?pny do String, a nast?pny to boolean "false" to powinno ?miga?. Tak jak pisa?em - wklej 5 linijk? i ew. co ci w debugerze pokazuje.
Wysłany: 2013-03-23, 16:13
monio
Wiek: 30 Na forum: 4887 dni Posty: 319
Nick w MP: Monio99
Piwa : 3565
mozecie mi dopisa? zeby okno by?o widoczne tylko po przez wiazd w marker i zebym mia? myszk?
GUIEditor_Window = {}
GUIEditor_Button = {}
GUIEditor_Label = {}
GUIEditor_Window [ 1 ] = guiCreateWindow ( 806 , 461 , 299 , 161 , "Kontrola_Pojazdu" , false )
GUIEditor_Label [ 1 ] = guiCreateLabel ( 13 , 31 , 109 , 23 , "Auto:" , false , GUIEditor_Window [ 1 ])
guiSetFont ( GUIEditor_Label [ 1 ], "default-bold-small" )
GUIEditor_Label [ 2 ] = guiCreateLabel ( 13 , 59 , 95 , 23 , "Waga:" , false , GUIEditor_Window [ 1 ])
guiSetFont ( GUIEditor_Label [ 2 ], "default-bold-small" )
GUIEditor_Button [ 1 ] = guiCreateButton ( 74 , 105 , 122 , 47 , "WYJSCIE" , false , GUIEditor_Window [ 1 ])
guiSetFont ( GUIEditor_Button [ 1 ], "default-bold-small" )
local theMarker = createMarker ( - 2060.1584472656 , 77.923889160156 , 28.390625 , "cylinder" , 5 , 255 , 255 , 255 , 255 )
function markerHit ( hitElement )
local vehicle = getPedOccupiedVehicle ( hitElement )
if vehicle then
guiSetVisible ( GUIEditor_Window [ 1 ], true )
guiSetText ( GUIEditor_Label [ 1 ], "Auto: " .. getVehicleName ( vehicle ))
guiSetText ( GUIEditor_Label [ 2 ], "Waga: 1000kg" )
local vehicleController = getVehicleController ( vehicle )
local playerController = string . gsub ( vehicleController , "#%x%x%x%x%x%x" , "" )
guiSetText ( GUIEditor_Label [ 3 ], "Wlasciciel: " .. playerController )
end
end
addEventHandler ( "onClientMarkerHit" , resourceRoot , markerHit ) [quote][/quote]
Wysłany: 2013-03-24, 10:50
HartHol
Log Out
Wiek: 27 Na forum: 5037 dni Posty: 116
Nick w MP: HartHol
Piwa : 14
GUIEditor_Window = {}
GUIEditor_Button = {}
GUIEditor_Label = {}
GUIEditor_Window [ 1 ] = guiCreateWindow ( 806 , 461 , 299 , 161 , "Kontrola_Pojazdu" , false )
guiSetVisible ( GUIEditor_Window [ 1 ], false )
GUIEditor_Label [ 1 ] = guiCreateLabel ( 13 , 31 , 109 , 23 , "Auto:" , false , GUIEditor_Window [ 1 ])
guiSetFont ( GUIEditor_Label [ 1 ], "default-bold-small" )
GUIEditor_Label [ 2 ] = guiCreateLabel ( 13 , 59 , 95 , 23 , "Waga:" , false , GUIEditor_Window [ 1 ])
guiSetFont ( GUIEditor_Label [ 2 ], "default-bold-small" )
GUIEditor_Button [ 1 ] = guiCreateButton ( 74 , 105 , 122 , 47 , "WYJSCIE" , false , GUIEditor_Window [ 1 ])
guiSetFont ( GUIEditor_Button [ 1 ], "default-bold-small" )
local theMarker = createMarker ( - 2060.1584472656 , 77.923889160156 , 28.390625 , "cylinder" , 5 , 255 , 255 , 255 , 255 )
function markerHit ( hitElement )
local vehicle = getPedOccupiedVehicle ( hitElement )
if vehicle then
showCursor ( true )
guiSetVisible ( GUIEditor_Window [ 1 ], true )
guiSetText ( GUIEditor_Label [ 1 ], "Auto: " .. getVehicleName ( vehicle ))
guiSetText ( GUIEditor_Label [ 2 ], "Waga: 1000kg" )
local vehicleController = getVehicleController ( vehicle )
local playerController = string . gsub ( vehicleController , "#%x%x%x%x%x%x" , "" )
guiSetText ( GUIEditor_Label [ 3 ], "Wlasciciel: " .. playerController )
end
end
addEventHandler ( "onClientMarkerHit" , resourceRoot , markerHit )
Naprawd? tego nie potrafisz zrobi? ?
Wysłany: 2013-03-24, 11:28
Brzysiek
Skrypter pralek
Wiek: 27 Na forum: 5198 dni Posty: 488
Nick w MP: Brzysiek
Piwa : 1034
function markerHit ( hitElement )
if source == theMarker then
local vehicle = getPedOccupiedVehicle ( hitElement )
if vehicle then
showCursor ( true )
guiSetVisible ( GUIEditor_Window [ 1 ], true )
guiSetText ( GUIEditor_Label [ 1 ], "Auto: " .. getVehicleName ( vehicle ))
guiSetText ( GUIEditor_Label [ 2 ], "Waga: 1000kg" )
local vehicleController = getVehicleController ( vehicle )
local playerController = string . gsub ( vehicleController , "#%x%x%x%x%x%x" , "" )
guiSetText ( GUIEditor_Label [ 3 ], "Wlasciciel: " .. playerController )
end
end
end
addEventHandler ( "onClientMarkerHit" , resourceRoot , markerHit )
Tagi: kontrola_vagi
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: