Wysłany: 2019-01-13, 10:15
MartinPanZycia
Zielony w LUA
Wiek: 27 Na forum: 3728 dni Posty: 476
Nick w MP: Rodzaje
Piwa : 878
addEventHandler ( "onClientMarkerHit" , markerList , function( hit )
if hit ~= localPlayer then return end
if isPedInVehicle ( localPlayer ) then
outputChatBox ( "Nie mo?esz siedzie? w poje?dzie!" , 255 , 0 , 0 ) return end
zrobione = zrobione + 1
destroyElement ( source )
destroyElement ( blipList )
local pieniadz = math . random ( 10 , 200 )
local pos = math . random ( 1 , #items2)
eq : insertItem ( 'items[pos][1]' , 1 )
triggerServerEvent ( "giveMoney" , localPlayer , pieniadz )
end
end
if zrobione == #punktyListonosza then
setElementData ( localPlayer , "praca" , nil )
return
end
end
end )
end
Za pomoc resp + piwo , nie wiem proboje dodawac end ale nadal wciaz ten sam blad
Podpis
Cześć w MTA jestem jako Rodzaje.
Wszystko jest po staremu nie zamierzam stawiać RPG.
Wysłany: 2019-01-13, 10:24
Wilq
Wiek: 24 Na forum: 4428 dni Posty: 3410
Piwa : 739
Za du?o end?w, strasznie namieszanie w kodzie.
addEvent ( "showAchievement" , true )
addEventHandler ( "showAchievement" , root , function( tresc , poziom )
table . insert ( achievement_lines , { name = tresc , poziom = poziom , ts = getTickCount () })
if not adisplay_active then
addEventHandler ( "onClientRender" , root , render )
end
end )
addEventHandler ( "onClientMarkerHit" , markerList , function( hit )
if hit ~= localPlayer then return end
if isPedInVehicle ( localPlayer ) then outputChatBox ( "Nie mo?esz siedzie? w poje?dzie!" , 255 , 0 , 0 ) return end
zrobione = zrobione + 1
destroyElement ( source )
destroyElement ( blipList )
local pieniadz = math . random ( 10 , 200 )
local pos = math . random ( 1 , #items2)
eq : insertItem ( 'items[pos][1]' , 1 )
triggerServerEvent ( "giveMoney" , localPlayer , pieniadz )
if zrobione == #punktyListonosza then
setElementData ( localPlayer , "praca" , nil )
return
end
end )
Tagi: expected :: (to :: close :: line :: 131) :: near :: end
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: