找回密码
 点一下
查看: 1897|回复: 1

JASS无效变量数字

[复制链接]
发表于 2008-4-20 16:07:16 | 显示全部楼层 |阅读模式
为什么说
function JassCreateUnit takes player P,integer Num,location point,real angle,integer uid,integer timeout returns nothing
local integer i=0
loop
set i = i+1
exitwhen i > Num
call CreateNUnitsAtLoc( 1, uid, P, point, angle )
call PolledWait( timeout )
endloop
endfunction
我这段代码是不能运行...
发表于 2008-4-20 18:01:40 | 显示全部楼层
这段是完全没有问题的,是不是lz调用的时候参数顺序或者什么出现了问题了呢?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点一下

本版积分规则

Archiver|移动端|小黑屋|地精研究院

GMT+8, 2024-5-16 04:33 , Processed in 0.153634 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表