GetItemIndex
GetItemIndex(_CharIndex, _Pos);
函数功能:
获取指定玩家对像身上指定位置的道具索引。
操作参数:
| 参数名 | 是否必须 | 类型 | 说明 |
|---|---|---|---|
| _CharIndex | 是 | int | 角色对象索引 |
| _Pos | 是 | int | 指定位置(0~27) |
返回值:
| 返回值类型 | 成功 | 失败 |
|---|---|---|
| int | >=0 | <=-1 |
操作实例:
local ItemIndex = Char.GetItemIndex(_CharIndex, 9);if(ItemIndex < 0)thenprint("此位置无道具");elseprint("此位置道具索引为:"..ItemIndex);end
备注:
- 更多返回错误代码请看首页的错误代码描述
作者:105493660 创建时间:2017-12-02 10:30
更新时间:2025-12-24 21:35
更新时间:2025-12-24 21:35