|
发表于 2008-2-26 13:21:51
|
显示全部楼层
call ExecuteFunc(CreateCreep(dyl,la))
ExecuteFunc函数调用的参数是string
[codes=jass]function CreateCreep takes integer dyl,location la returns nothing
if ( dyl == 10 ) then
call CreateNUnitsAtLoc( 1, ChooseRandomCreepBJ(GetRandomInt(1, 10)), Player(PLAYER_NEUTRAL_AGGRESSIVE), la, GetRandomReal(0, 359.00 ))
else
call CreateNUnitsAtLoc( 1, ChooseRandomCreepBJ( dyl + 1 ), Player(PLAYER_NEUTRAL_AGGRESSIVE), la, GetRandomReal(0, 359.00 ))
endif
endfunction[/codes]
这个函数返回值是nothing,所以出错了 |
|