EnablePrimaryMouseButtonEvents(true)
math.randomseed(tostring(os.time()):reverse():sub(1, 6))
function OnEvent(event, arg)
if (event == "MOUSE_BUTTON_PRESSED" and arg == 1) then
while (true)
do
if (IsMouseButtonPressed(1)) then
ReleaseMouseButton(1)
MoveMouseRelative(0,math.random(9,14))
PressMouseButton(1)
Sleep(30)
else
break
end
end
end
end
调试的时候显示
input:1: attempt to call a nil value (global 'EnablePrimaryMouseButtonEvents')
就只有这么几行代码,是个小脚本
追答把你能提供的所有代码传上来
如果没有,把那行前面加//看还报错么?有错误接着问