Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: 4000
1. Co to za karamba, ze dublikuje sie 4000 razy
Witam mam problem ze skryptem na zombie.

[19-12-23 22] WARNING: [zombie]/c_zombie/nz_s.lua:257: Bad argument @ 'getElementType' [Expected element at argument 1] [DUP x4612]



Kod:

function zombieNearLeave ( thePlayer )
if (getElementType(thePlayer) or false) == "player" and getElementData ( source, "zombieShape" ) then -- linijka 257
local zomb = getElementData ( source, "zombieElement" )
if isElement ( zomb ) and exports.npc_hlc:isHLCEnabled ( zomb ) then
if getElementData ( zomb, "fast" ) then
return true
end
local thistask = getElementData(zomb,"npc_hlc:thistask")
if thistask then
local task = getElementData(zomb,"npc_hlc:task."..thistask)
if task then
if task[1] == "killPed" and isElement ( task[2] ) then
if task[2] == thePlayer then
exports.npc_hlc:clearNPCTasks (zomb)
setElementData(zomb,"target",false)
wentZombieToWalk(zomb)
end
end
end
end
end
end
end
addEventHandler ( "onColShapeLeave", root, zombieNearLeave )