|
楼主 |
发表于 2013-10-27 07:43:05
|
显示全部楼层
本帖最后由 feiruzhou 于 2013-10-27 07:52 编辑
已经解决了,不过很奇怪,我就发一下吧!
function kongzhong takes nothing returns nothing
local timer tm=GetExpiredTimer()
if(udf_airs>0) then
if (udg_Playing[1] == true) then
set bj_lastCreatedUnit=CreateUnitAtLoc( Player(11), udg_UnitsAir[udg_Wave], udg_Points[1], 90.00 )
call SetUnitPathing( GetLastCreatedUnit(), false )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_TempGroup[1] )
call SetUnitUserData( GetLastCreatedUnit(), 101 )
call IssuePointOrderLoc( GetLastCreatedUnit(), "move", udg_GWjingongdian[GetUnitUserData(GetLastCreatedUnit())] )
endif
if (udg_Playing[2] == true) then
set bj_lastCreatedUnit=CreateUnitAtLoc( Player(11), udg_UnitsAir[udg_Wave], udg_Points[2], 90.00 )
call SetUnitPathing( GetLastCreatedUnit(), false )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_TempGroup[2] )
call SetUnitUserData( GetLastCreatedUnit(), 201 )
call IssuePointOrderLoc( GetLastCreatedUnit(), "move", udg_GWjingongdian[GetUnitUserData(GetLastCreatedUnit())] )
endif
if (udg_Playing[3] == true) then
set bj_lastCreatedUnit=CreateUnitAtLoc( Player(11), udg_UnitsAir[udg_Wave], udg_Points[3], 90.00 )
call SetUnitPathing( GetLastCreatedUnit(), false )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_TempGroup[3] )
call SetUnitUserData( GetLastCreatedUnit(), 301 )
call IssuePointOrderLoc( GetLastCreatedUnit(), "move", udg_GWjingongdian[GetUnitUserData(GetLastCreatedUnit())] )
endif
if (udg_Playing[4] == true) then
set bj_lastCreatedUnit=CreateUnitAtLoc( Player(11), udg_UnitsAir[udg_Wave], udg_Points[4], 90.00 )
call SetUnitPathing( GetLastCreatedUnit(), false )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_TempGroup[4] )
call SetUnitUserData( GetLastCreatedUnit(), 401 )
call IssuePointOrderLoc( GetLastCreatedUnit(), "move", udg_GWjingongdian[GetUnitUserData(GetLastCreatedUnit())] )
endif
set udg_airs=udg_airs-1
else
call DestroyTimer(tm)
endif
endfunction
function shuaf takes nothing returns nothing
local timer tm=CreateTimer()
call TimerStart(tm,0.1,true,function kongzhong)
set tm=null
endfunction
问题我已经找到了。是Timer里条用的函数忘记endfunction了,但是YD的提示错误
的那行居然是function shuaf takes nothing returns nothing,提示的错误信息是:Syntax Error,unexpected:"takes"?我怎么看这行都没错,后来放到JassCraft检测了一下才发现是kongzhong这个函数忘记endfunction了
|
|