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

这段JASS哪里错了?

[复制链接]
发表于 2008-8-5 19:11:24 | 显示全部楼层 |阅读模式
[jass]function LifeRegetT takes nothing returns nothing
  local timer tm=CreateTimer()
  call TimerStart(tm,1.00,true,function LifeReget)//未定义的函数??????我是按照教程......
  set tm=null
endfunction

function LifeReget takes nothing returns nothing
  local integer n=0
  loop
  call SetUnitState(udg_hero[n],UNIT_STATE_LIFE, ( GetUnitState(udg_hero[n],UNIT_STATE_LIFE) - 1 ) )
  set n=n+1
  exitwhen n==13
  endloop
endfunction
[/jass]
发表于 2008-8-5 19:21:19 | 显示全部楼层
被调用的函数要写在 调用函数之前..
回复

使用道具 举报

 楼主| 发表于 2008-8-5 19:21:54 | 显示全部楼层
原来还要这样
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-7-21 02:38 , Processed in 0.057658 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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