馬上加入Android 台灣中文網,立即免費下載應用遊戲。
您需要 登錄 才可以下載或查看,沒有帳號?註冊
x
本帖最後由 s031108 於 2014-5-19 23:43 編輯
错误:脚本编译出错...
错误代码:3
错误信息:
脚本GG主程序(ALL)1.lua第240行有语法错误, <goto D> at line 209 jumps into the scope of local "flag"
--回en1
::R1::
local flag, x, y = findImageFuzzy(image.."9.bmp", 70, w*490, h*720, w*540, h*770);
if flag then
toast("GG");
sleep(wait1);
touchDown( w*720, h*770);
sleep(60);
touchUp();
sleep(wait1);
end
local flag2, x, y = findImageFuzzy(image.."6.bmp", 70, 400*w,600*h,450*w,640*h);
if flag2 then
toast("回en");
sleep(wait1);
touchDown( w*430, h*560);
touchUp();
sleep(wait1);
goto R2
end
209 goto D
--回en1
--回en2
::R2::
local flag, x, y = findImageFuzzy(image.."9.bmp", 70, w*490, h*720, w*540, h*770);
if flag then
toast("GG");
sleep(wait1);
touchDown( w*720, h*770);
sleep(60);
touchUp();
sleep(wait1);
end
local flag, x, y = findImageFuzzy(image.."7.bmp", 60, w*610, h*580, w*685, h*650);
if flag then
sleep(wait1);
touchDown( w*720, h*640);
sleep(60);
touchUp();
sleep(wait1);
goto C
else
goto R2
end
--回en2
--開始1
toast("開始");
::D::
240 local flag, x, y = findImageFuzzy(image.."9.bmp", 70, w*490, h*720, w*540, h*770);
if flag then
toast("GG");
sleep(wait1);
touchDown( w*720, h*770);
sleep(60);
touchUp();
sleep(wait1);
end
local flag4, x4, y4 = findImageFuzzy(image.."3.bmp", 80);
if flag4 then
sleep(wait1);
touchDown( w*360, h*650);
sleep(60);
touchUp();
else
goto D
end
::AT::
local flag2, x2, y2 = findImageFuzzy(image.."bs1.bmp", 90, w*690, h*450, w*730, h*490);
if flag2 then
else
goto AT
end
sleep(800);
touchDown( w*760, h*970);
touchUp();
sleep(400);
touchDown( w*760, h*970);
touchUp();
sleep(400);
touchDown( w*760, h*970);
touchUp();
sleep(400)
touchDown( w*20, h*70);
touchUp();
sleep(wait1);
--開始1 |