找回密码
 点一下
查看: 1696|回复: 6

[已解决]让人死的GroupBug

[复制链接]
发表于 2008-7-14 11:13:25 | 显示全部楼层 |阅读模式
Group凡是InRect的怎么都不行?
OfPlayer到是可以
其他的我还不知道。
真是太恶心了…………
发表于 2008-7-14 11:21:52 | 显示全部楼层
应该是自己没用对吧。
回复

使用道具 举报

 楼主| 发表于 2008-7-14 12:48:22 | 显示全部楼层
??
是吗??
我编的貌似是这个样子的:
[codes=jass]
function B takes nothing returns nothing
return (IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction

function C takes nothing returns nothing
call DoNothing()
endfunction

function A takes nothing returns nothing
local group g=null
local rect r=GetPlayableMapRect()
set g=GetUnitsInRectMatching(g,r,Condition(function B))
//问题好像就出在上面那句话中
call ForGroup(g,function C)
call DestroyGroup(g)
set g=null
call RemoveRect(r)
set r=null
endfunction
//顺便说一下,我在运行这个以前,还用过
function D takes nothing returns nothing
local rect r=GetPlayableMapRect()
........
call RemoveRect(r)
set r=null
endfunction
//这个函数。
//是不是GetPlayableMapRect()是不能用RemoveRect()清除的?
//要不然清除完后会让GetPlayableMapRect()读取的是一个空项?
[/codes]
拜托解答一下^_^
回复

使用道具 举报

发表于 2008-7-14 23:34:32 | 显示全部楼层
看你另外的帖子吧
http://www.islga.org/bbs/read.php?tid=16590
另外这些发到疑问区会得到更快的解答
回复

使用道具 举报

 楼主| 发表于 2008-7-21 10:55:21 | 显示全部楼层
啊,解决了!
回复

使用道具 举报

发表于 2008-7-21 10:57:25 | 显示全部楼层
不会现在才知道吧
回复

使用道具 举报

 楼主| 发表于 2008-7-21 11:04:46 | 显示全部楼层
…………………………………………
自己在家查出来了………………………………
废了一天……………………
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-9 03:20 , Processed in 0.039360 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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