- 15
- 1
- Версия MoonLoader
- .026-beta
attempt to call global 'SendPlayerSync' (a nil value)? Объясните что не так?
ffff:
function onSendPlayerSync(data)
if found and active then
local anim = sampGetPlayerAnimationId(pid)
local x, y = getCharCoordinates(PLAYER_PED)
local dis = getDistanceBetweenCoords2d(x, y, ax, ay)
if dis > 250 then
script:reload()
end
if dis > 2 then
runTo(x, y, ax, ay, dis)
local text = sampGet3dTextInfoById(tid)
if text == "" then
found = false
timer = 0
ax = 0
ay = 0
tid = 0
end
else
setGameKeyState(1, 0)
local text = sampGet3dTextInfoById(tid)
local alt_pressed = false
if string.match(text, "Для сбора урожая", 0) then
if anim == 168 then
if scriptEnabled and alt_pressed then
data.keys.unknown_walkSlow = 1
sampAddChatMessage('Click alt', -1)
end
while true do
wait(0)
alt_pressed = not alt_pressed
end
else
if anim == 1189 then
--setGameKeyState(16,0)
wait(250)
--setGameKeyState(16,-256)
temp = 1
else
--setGameKeyState(16,-256)
end
end
else
wait(25)
found = false
timer = 0
lap.v = lap.v - 1
matches = {}
if lap.v ~= 0 then
sampAddChatMessage("{30F867}[ARZ]{FFFFFF} Осталось ещё кругов: "..lap.v.."!", -255)
elseif lap.v == 0 then
sampAddChatMessage("{30F867}[ARZ]{FFFFFF} Круги закончились!", -255)
if get_cash.v then
runtoc = true
end
end
end
end
end
end
end
end
onSendPlayerSync(data)