- 337
- 88
- Версия MoonLoader
- Другое
В LuaAddons от "BBooGG" вылетает ошибка
Вот мой код
код RakBot-0.8.3.1\\scripts\libs\luaAddons\checkpoint.lua:6: in function 'v'
вот код RakBot-0.8.3.1\\scripts\libs\luaAddons\proxy.lua:7: in function <...Desktop\RakBot-0.8.3.1\\scripts\libs\luaAddons\proxy.lua:2
Код:
[C]: in function 'bitStreamInit'
[ERROR] ...op\RakBot-0.8.3.1\\scripts\libs\luaAddons\checkpoint.lua:6: in function 'v'
[ERROR] ...Desktop\RakBot-0.8.3.1\\scripts\libs\luaAddons\proxy.lua:7: in function <...Desktop\RakBot-0.8.3.1\\scripts\libs\luaAddons\proxy.lua:2>
Вот мой код
Lua:
dofile(getRakBotPath()..'\\scripts\\libs\\luaAddons\\checkpoint.lua')
function onSetCheckpoint(position, radius)
if isCoordsInArea2d(x, y, 1143, -1753, 1153, -1742) then
printLog('Worked')
end
end
function isCoordsInArea2d(x, y, ax, ay, bx, by)
if x > ax and x < bx and y < ay and y > by then return true end return false
end
код RakBot-0.8.3.1\\scripts\libs\luaAddons\checkpoint.lua:6: in function 'v'
Lua:
if proxy == nil then
proxy = dofile(getRakBotPath()..'\\scripts\\libs\\luaAddons\\proxy.lua')
end
function proxy.Checkpoint(id,bs,size)
if id == 38 then
local bs = bitStreamInit(data, size)
local px = bitStreamReadFloat(bs)
local py = bitStreamReadFloat(bs)
local pz = bitStreamReadFloat(bs)
local position = {x=px,y=py,z=pz}
local radius = bitStreamReadFloat(bs)
if type(onSetCheckpoint) == 'function' then
onSetCheckpoint(position, radius)
end
bitStreamDelete(bs)
end
if id == 107 then
local bs = bitStreamInit(data, size)
local t = bitStreamReadByte(bs)
local px = bitStreamReadFloat(bs)
local py = bitStreamReadFloat(bs)
local pz = bitStreamReadFloat(bs)
local position = {x=px,y=py,z=pz}
local npx = bitStreamReadFloat(bs)
local npy = bitStreamReadFloat(bs)
local npz = bitStreamReadFloat(bs)
local nextPosition = {x=npx,y=npy,z=npz}
local size = bitStreamReadFloat(bs)
if type(onSetRaceCheckpoint) == 'function' then
onSetRaceCheckpoint(t, position, nextPosition, size)
end
bitStreamDelete(bs)
end
end
вот код RakBot-0.8.3.1\\scripts\libs\luaAddons\proxy.lua:7: in function <...Desktop\RakBot-0.8.3.1\\scripts\libs\luaAddons\proxy.lua:2
Lua:
local et = {}
function onRecvRpc(id, data, size)
if type(onRRpc) == 'function' then
onRRpc(id,data,size)
end
for k,v in pairs(et) do
v(id,data,size)
end
end
return et