| Tematy otagowane jako: [expected |
| 1. Bad argument @ 'getPedOccupiedVehicle' [Expected ped at argu |
hey mam problem z zdefiniowaniem go?cia w aucie kto? pomo?e?
oto kod
s-side
|
| 2. Bad argument @ 'bindKey' [Expected player at argument 1, got |
z?y argument ? nie czaje tego za cholere my?la?em ,?e wszystko dobrze napisa?em
|
| 3. Bad argument @ 'addEventHandler' [Expected element at argume |
Witam mam pewien problem bawi? si? w bramki na autostradach lecz mam pewien problem
kod
|
| 4. addEventHandler [Expected element at argument 2, got nil] |
Wszystko dzia?a na pocz?tku tylko paczki nie mo?na odda? do drugiego markera
addEventHandler("onClientMarkerHit", markerx, function(el, md)
[lua]
function startjob2()
if source ~= buttonstart2 then return end
if getElementData(localPlayer, "mamskrzynke") == true
then outputChatBox("Masz ju? skrzynke!") return end
losuj = math.random ( 1, #markery )
local markerx = createMarker(markery[losuj][1],markery[losuj][2],markery[losuj][3], markery[losuj][4], markery[losuj][5], markery[losuj][6], markery[losuj][7], markery[losuj][8], markery[losuj][9])
blip = createBlipAttachedTo(markerx, 41)
setElementData(localPlayer, "mamskrzynke", true)
box = createObject(2912, 0, 0, 0)
attachElements(box, localPlayer, 0, 0.78, 0.3)
toggleControl ("sprint", false)
toggleControl ("jump", false)
toggleControl ("fire", false)
end
setPedAnimation(localPlayer, "carry", "crry_prtial", 1, false, true)
addEventHandler("onClientMarkerHit", markerx, function(el, md)
if localPlayer == el and md then
setPedAnimation(localPlayer, "CARRY", "putdwn", -1, true, false, false)
setTimer(function()
setElementData(localPlayer, "wezpaczke", false)
setElementData(l... |
|