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

Wysłany: 2013-03-23, 15:05


monio







Wiek: 30
Na forum: 4887 dni
Posty: 319
Nick w MP: Monio99

Piwa: 3565

Respekt: 120,5
Respekt: 120,5

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 )


Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-03-23, 15:14


luki123luki123

Place Game






Wiek: 28
Na forum: 5275 dni
Posty: 1948
Nick w MP: LuKiO

Piwa: 6101

Respekt: 611
Respekt: 611Respekt: 611

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

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-03-23, 15:19


monio







Wiek: 30
Na forum: 4887 dni
Posty: 319
Nick w MP: Monio99

Piwa: 3565

Respekt: 120,5
Respekt: 120,5

"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

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-03-23, 15:43


Brzysiek

Skrypter pralek






Wiek: 27
Na forum: 5198 dni
Posty: 488
Nick w MP: Brzysiek

Piwa: 1034

Respekt: 360
Respekt: 360Respekt: 360Respekt: 360Respekt: 360

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" ,falseguiSetVisible (GUIEditor_Window[1], falseguiWindowSetSizable(GUIEditor_Window[1], falseGUIEditor_Label[1] = guiCreateLabel(0.0674,0.0973,0.2727,0.1167,"Auto:",true,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[1],default-bold-smallGUIEditor_Label[2] = guiCreateLabel(0.0557,0.2296,0.1848,0.1012,"Waga:",true,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[2],default-bold-smallGUIEditor_Label[3] = guiCreateLabel(0.0411,0.3346,0.2111,0.1012,"wlasciciel:",true,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[3],default-bold-smallGUIEditor_Button[1] = guiCreateButton(0.2874,0.5992,0.4076,0.2374,"WYJSCIE",true,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Button[1],default-bold-small


Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-03-23, 16:00


monio







Wiek: 30
Na forum: 4887 dni
Posty: 319
Nick w MP: Monio99

Piwa: 3565

Respekt: 120,5
Respekt: 120,5

"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" ,falseguiSetVisible (GUIEditor_Window[1], falseguiWindowSetSizable(GUIEditor_Window[1], falseGUIEditor_Label[1] = guiCreateLabel(0.0674,0.0973,0.2727,0.1167,"Auto:",true,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[1],default-bold-smallGUIEditor_Label[2] = guiCreateLabel(0.0557,0.2296,0.1848,0.1012,"Waga:",true,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[2],default-bold-smallGUIEditor_Label[3] = guiCreateLabel(0.0411,0.3346,0.2111,0.1012,"wlasciciel:",true,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[3],default-bold-smallGUIEditor_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

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-03-23, 16:06


Piorun







Wiek: 32
Na forum: 6712 dni
Posty: 1837
Nick w MP: Piorun

Piwa: 516

Respekt: 480,7
Respekt: 480,7

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.

Podpis
Możesz mnie znaleźć na: Facebook
Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-03-23, 16:13


monio







Wiek: 30
Na forum: 4887 dni
Posty: 319
Nick w MP: Monio99

Piwa: 3565

Respekt: 120,5
Respekt: 120,5

mozecie mi dopisa? zeby okno by?o widoczne tylko po przez wiazd w marker i zebym mia? myszk? :D

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.158447265677.92388916015628.390625"cylinder"5255255255255 )

function markerHithitElement )
    local vehicle getPedOccupiedVehiclehitElement )
    if vehicle then
        guiSetVisible(GUIEditor_Window[1], true)
        guiSetText(GUIEditor_Label[1], "Auto: " .. getVehicleNamevehicle ))
        guiSetText(GUIEditor_Label[2], "Waga: 1000kg")   
        local vehicleController getVehicleControllervehicle )
        local playerController string.gsub(vehicleController"#%x%x%x%x%x%x""")
        guiSetText(GUIEditor_Label[3], "Wlasciciel: " .. playerController)
    end
end
addEventHandler("onClientMarkerHit"resourceRootmarkerHit)
[quote][/quote]

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-03-24, 10:50


HartHol

Log Out






Wiek: 27
Na forum: 5037 dni
Posty: 116
Nick w MP: HartHol

Piwa: 14

Respekt: 50


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.158447265677.92388916015628.390625"cylinder"5255255255255 )

function markerHithitElement )
    local vehicle getPedOccupiedVehiclehitElement )
    if vehicle then
        showCursor(true)        
        guiSetVisible(GUIEditor_Window[1], true)
        guiSetText(GUIEditor_Label[1], "Auto: " .. getVehicleNamevehicle ))
        guiSetText(GUIEditor_Label[2], "Waga: 1000kg")   
        local vehicleController getVehicleControllervehicle )
        local playerController string.gsub(vehicleController"#%x%x%x%x%x%x""")
        guiSetText(GUIEditor_Label[3], "Wlasciciel: " .. playerController)
    end
end
addEventHandler("onClientMarkerHit"resourceRootmarkerHit)


Naprawd? tego nie potrafisz zrobi? ? :roll:

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-03-24, 11:28


Brzysiek

Skrypter pralek






Wiek: 27
Na forum: 5198 dni
Posty: 488
Nick w MP: Brzysiek

Piwa: 1034

Respekt: 360
Respekt: 360Respekt: 360Respekt: 360Respekt: 360


function markerHithitElement )
    if source == theMarker then
   local vehicle getPedOccupiedVehiclehitElement )
    if vehicle then
        showCursor(true)        
        guiSetVisible(GUIEditor_Window[1], true)
        guiSetText(GUIEditor_Label[1], "Auto: " .. getVehicleNamevehicle ))
        guiSetText(GUIEditor_Label[2], "Waga: 1000kg")   
        local vehicleController getVehicleControllervehicle )
        local playerController string.gsub(vehicleController"#%x%x%x%x%x%x""")
        guiSetText(GUIEditor_Label[3], "Wlasciciel: " .. playerController)
    end
end
end
addEventHandler("onClientMarkerHit"resourceRootmarkerHit)


Postaw piwo autorowi tego posta
 

 
Tagi: kontrola_vagi
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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