killercycDDS
Migacz
Wiek: 25 Na forum: 4512 dni Posty: 629
Nick w MP: killer_cyc[DDS]
Piwa : 1659
Witam mam pewien problem bawi? si? w bramki na autostradach lecz mam pewien problem
kod
local markery = {
{- 2668.07 , 1273.93 , 55.43 },
{- 2677.32 , 1274.63 , 55.43 },
}
for i , v in ipairs ( markery ) do
local markery = createMarker ( v [ 1 ], v [ 2 ], v [ 3 ]- 1 , "cylinder" , 9 , 0 , 0 , 0 , 170 )
end
addEventHandler ( "onClientMarkerHit" , markery ,
function( el )
local kasa = getPlayerMoney ( el )
local hajs = 10
local veh = getPedOccupiedVehicle ( el )
if kasa < hajs then outputChatBox ( "Nie posiadasz wystarczaj?co pini?dzy aby przejecha?." , client , 255 , 255 , 255 , true ) return end
if not veh then outputChatBox ( "Nie jeste? w aucie" , client , 255 , 255 , 255 , true ) return end
setPedFrozen ( veh , true )
takePlayerMoney ( veh , hajs )
setPedFrozen ( veh , false )
-- end
end )
b??d
Bad argument @ 'addEventHandler' [Expected element at argument 2, got table]
addEventHandler ( "onClientMarkerHit" , markery ,
function( el )