Wysłany: 2017-02-14, 10:32
venzikk
LUA, MODELER
Wiek: 24 Na forum: 3823 dni Posty: 235
Nick w MP: VenZ
Piwa : 3158
Witam mam ot?? taki problem, zrobi?em skrypt na Paint Job w GUI, lecz jest b??d gdzie? tutaj:
function pj1 ()
if source = GUIEditor . button [ 1 ] then return
end
triggerServerEvent ( "ustawpj1" , localPlayer ) pj1
end
b??d z db3 : pj/pj_c.lua:38 "=" expected near "end"
Za pomoc piwko
Wysłany: 2017-02-14, 10:47
Kibol1908.
Good Boy
Wiek: 27 Na forum: 4111 dni Posty: 69
Nick w MP: Hello_Boy
Piwa : 99
function pj1 ()
if source == GUIEditor . button [ 1 ] then return
end
triggerServerEvent ( "ustawpj1" , localPlayer )
end
Więcej szczegółów
Wystawiono 1 piw(a):venzikk
Wysłany: 2017-02-14, 10:59
venzikk
LUA, MODELER
Wiek: 24 Na forum: 3823 dni Posty: 235
Nick w MP: VenZ
Piwa : 3158
Teraz b??d polega na tym, ?e jak ustawie pj1 i chc? potem pj2 to musz? dwa razy klikn?? na pj2, ?eby mi ustawi?o dw?jk?, a co idzie za tym podw?jnie mi kase zabiera i jak klikn? zamknij kasuje si? Paint Job ;/
c
GUIEditor = {
button = {},
window = {}
}
addEventHandler ( "onClientResourceStart" , resourceRoot ,
function()
GUIEditor . window [ 1 ] = guiCreateWindow ( 21 , 223 , 214 , 331 , "System Paint Job ka?dy kosztuje 15 k!" , false )
guiWindowSetSizable ( GUIEditor . window [ 1 ], false )
GUIEditor . button [ 1 ] = guiCreateButton ( 10 , 32 , 195 , 61 , "Paint Job 1" , false , GUIEditor . window [ 1 ])
GUIEditor . button [ 2 ] = guiCreateButton ( 9 , 107 , 195 , 61 , "Paint Job 2" , false , GUIEditor . window [ 1 ])
GUIEditor . button [ 3 ] = guiCreateButton ( 12 , 193 , 195 , 61 , "Paint Job 3" , false , GUIEditor . window [ 1 ])
GUIEditor . button [ 4 ] = guiCreateButton ( 9 , 266 , 195 , 61 , "Zamknij" , false , GUIEditor . window [ 1 ])
end
)
addEventHandler ( "onClientResourceStart" , resourceRoot ,
function()
guiSetVisible ( GUIEditor . window [ 1 ], false )
end
)
marker = createMarker ( 1.31673 , 2043.57178 , 17.7098 - 0.90 , 'cylinder' , 2.0 , 255 , 170 , 0 , 150 )
function hit ()
guiSetVisible ( GUIEditor . window [ 1 ], true )
showCursor ( true )
end
addEventHandler ( "onClientMarkerHit" , marker , hit )
-- pJ1
function pj1 ()
if source == GUIEditor . button [ 1 ] then return
end
triggerServerEvent ( "ustawpj1" , localPlayer )
end
addEventHandler ( "onClientGUIClick" , root , pj1 )
-- PJ2
function pj2 ()
if source == GUIEditor . button [ 2 ] then return
end
triggerServerEvent ( "ustawpj2" , localPlayer )
end
addEventHandler ( "onClientGUIClick" , root , pj2 )
-- PJ3
function pj3 ()
if source == GUIEditor . button [ 3 ] then return
end
triggerServerEvent ( "ustawpj3" , localPlayer )
end
addEventHandler ( "onClientGUIClick" , root , pj3 )
function zamknij ()
if source ~= GUIEditor . button [ 4 ] then return end
guiSetVisible ( GUIEditor . window [ 1 ], localPlayer )
end
addEventHandler ( "onClientGUIClick" , root , zamknij )
function zamykamy ()
if source ~= GUIEditor . button [ 4 ] then return end
guiSetVisible ( GUIEditor . window [ 1 ], false )
showCursor ( false )
end
addEventHandler ( "onClientGUIClick" , root , zamykamy )
Podpis
Hej
[you]
,Tak ty! Pomogłem ci? zostaw
Pomagam w miarę możliwości
Kontakt:
Discord: VenZio#8080
GG:63293490
skype:szymex1021
Wysłany: 2017-02-14, 12:03
Kibol1908.
Good Boy
Wiek: 27 Na forum: 4111 dni Posty: 69
Nick w MP: Hello_Boy
Piwa : 99
Wysłany: 2017-02-14, 12:04
venzikk
LUA, MODELER
Wiek: 24 Na forum: 3823 dni Posty: 235
Nick w MP: VenZ
Piwa : 3158
addEvent ( "ustawpj1" , true )
addEventHandler ( "ustawpj1" , root , function()
pojazd = getPedOccupiedVehicle ( source )
if not pojazd then return end
takePlayerMoney ( source , 15000 )
outputChatBox ( "Pomy?lnie Zamontowano" , source , true )
setVehiclePaintjob ( pojazd , 1 )
end
)
addEvent ( "ustawpj2" , true )
addEventHandler ( "ustawpj2" , root , function()
pojazd = getPedOccupiedVehicle ( source )
if not pojazd then return end
takePlayerMoney ( source , 15000 )
outputChatBox ( "Pomy?lnie Zamontowano" , source , true )
setVehiclePaintjob ( pojazd , 2 )
end
)
addEvent ( "ustawpj3" , true )
addEventHandler ( "ustawpj3" , root , function()
pojazd = getPedOccupiedVehicle ( source )
if not pojazd then return end
takePlayerMoney ( source , 15000 )
outputChatBox ( "Pomy?lnie Zamontowano" , source , true )
setVehiclePaintjob ( pojazd , 3 )
end
)
Tagi: paint :: job :: gui
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: