找回密码
 点一下
查看: 1872|回复: 2

为什么我照教程写的JASS没用

[复制链接]
发表于 2011-4-14 12:45:36 | 显示全部楼层 |阅读模式
[trigger]lean 04
    事件
        时间 - 当游戏逝去 2.00 秒
    条件
    动作
        自定义代码:   call JassCreateUnit(10)
[/trigger]
[jass]
function JassCreateUnite takes integer Num returns nothing
local location point
local integer i = 0
set point = GetRectCenter(GetplayableMapRect())
loop
set i = i+1
exitwhen i>Num
call CreateNUnitsAtLoc( 1,'hfoo',Player(0),point,bj_UNIT_FACING)
call polledWait(2)
endloop
call RemoveLocation(point)
set point = null
endfunction
[/jass]
我是新手,刚学2天。我是按照教程写的,但是...按测试地图时总是检查有错误,到底错误在哪里。
还有谁能详细解释一下 call怎么用
发表于 2011-4-14 16:38:05 | 显示全部楼层
[jass]
function JassCreateUnite takes integer Num returns nothing
local location point
local integer i = 0
set point = GetRectCenter(GetPlayableMapRect())"大小写"
loop
set i = i+1
exitwhen i>Num
call CreateNUnitsAtLoc( 1,'hfoo',Player(0),point,bj_UNIT_FACING)
call PolledWait(2)"大小写"
endloop
call RemoveLocation(point)
set point = null
endfunction
[/jass]
回复

使用道具 举报

 楼主| 发表于 2011-4-14 19:13:05 | 显示全部楼层
[trigger]自定义代码:   call JassCreateUnit(10)
[/trigger]
检查时也有错误
..发现错误了
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-4 04:06 , Processed in 0.093389 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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