JoinBattle
JoinBattle( CharIndex,HeIndex);
函数功能:
设置玩家加入指定战斗。
操作参数:
| 参数名 | 是否必须 | 类型 | 说明 |
|---|---|---|---|
| _CharIndex | 是 | int | 对象索引 (玩家) |
| HeIndex | 是 | int | 对方索引 (玩家) |
返回值:
| 返回值类型 | 成功 | 失败 |
|---|---|---|
| int | 非nil | 返回 -5 队伍已经满员,返回 -3 此人物不在战斗中,返回 -4 当前人物处于战斗中 |
操作实例:
Battle.JoinBattle(CharIndex,HeIndex);
备注:
- 更多返回错误代码请看首页的错误代码描述
作者:105493660 创建时间:2017-12-22 17:49
更新时间:2025-12-24 21:35
更新时间:2025-12-24 21:35