Lua接口/服务端/PrintStr
来自雪舞天龙知识库
弹出消息框,测试脚本用
Lua 调用
PrintStr(strText)
服务端脚本中共出现 17 处调用,实参个数出现过:1 个(17 处)。
实现位于 LuaFnTbl_Misc.h。
参数
| 序号 | 参数 / 类型 | 说明 |
|---|---|---|
| 1 | strTextstring
|
消息框的提示字符串 脚本中的实参: strText(12 处)、"背包空间不够"、"找不到 杨铁信"
|
返回值
无返回值。赋值接收时得到 nil;这与返回数字 0 不同。
调用示例
以下取自随包服务端脚本的真实调用,可对照上方参数表确认参数顺序:
-- event/festival/SpringFestival07/ShiMen_CaiJi.lua
PrintStr(strText)
-- event/huodong/eShuangyingBoss.lua
PrintStr("Have a Monster in the scene")
-- event/huodong/eShuangyingBoss.lua
PrintStr("There is no Monster in the scene")