主题:  如何判断演员的存在?

xuyi_5d

职务:普通成员
等级:2
金币:1.0
发贴:179
#12001/5/11 8:44:17
如sprite(x).member=member(xx)
如何对xx是否在演员表中进行判断?



acneyouth

职务:普通成员
等级:1
金币:1.0
发贴:181
#22001/5/11 9:11:26
if sprite(x).member.name="'则表示没有此演员.



xuyi_5d

职务:普通成员
等级:2
金币:1.0
发贴:179
#32001/5/11 10:19:39
我是想在赋给sprite前判断



zwjn

职务:普通成员
等级:1
金币:0.0
发贴:110
#42001/5/11 15:58:42
简单检查
member(memberName).type=#empty



jerrowolf

职务:普通成员
等级:1
金币:0.0
发贴:83
#52001/5/12 8:47:04

if member(xx).membernum=-1 then it's not exits
or it's exits



jiesun

职务:普通成员
等级:1
金币:1.0
发贴:182
#62001/5/12 21:43:52
恩,这几种方式都可以实现,一般都是这样用的。