您需要 登录 才可以下载或查看,没有账号?register
函数名称:LuaFnGetLevel 注册函数:GetLevel 参数说明:sceneId(场景编号)、selfId(调用者ID) 功能说明:取得玩家当前等级,失败时返回-1
LuaFnGetLevel
GetLevel
sceneId
selfId
-1
代码案例:
判断用户等级给出系统提醒
--等级超过40级。 if GetLevel( sceneId, selfId ) < 40 then x805012_NotifyTips(sceneId, selfId, "您的等級不足40級,因此無法領取工資。"); return 0; end
举报
本版积分规则 发表回复 回帖后跳转到最后一页
|雪舞知识库 ( 浙ICP备15015590号-1 | 萌ICP备20232229号|浙公网安备33048102000118号 )|天天打卡
GMT+8, 2026-6-24 14:08 , Processed in 0.064923 second(s), 24 queries .
Powered by Discuz! X5.0
© 2001-2026 Discuz! Team.