脚本调用自制LUA面板交互
引擎版本:4.3问题描述:按照文档描述操作接收不到
Lua前端发送数据
ssr.NetworkUtil:SendMsg( 102, 1, 2, 3, "测试" )
接收前端102消息例子:
[@Message_102]
#IF
#ACT
SENDMSG 0 接收到的消息为:<$CUSTMSGPARAM>-<$Param1>-<$Param2>-<$Param3>
sendmsg 7 得到结果为:测试-1-2-3
#IF
EQUAL <$CUSTMSGPARAM> ActivityOpen_shoubao.giveAward
#ACT
MOV N$领奖按钮 <$Param1>
GIVE 屠龙 1 Http Request Code:0
OnLuaMessage 100 1 2 3 给客服端
发送100号消息
SendLuaMsg 102 1 0 0 请求**
端发放实际奖励道具
SendMsg 102 1 2 3 测试
----------------------------------------
LUA ERROR: :0: invalid arg
uments in function 'lua_mmorpg_network_ctl_LuaNetworkController_SendMsg'
stack traceback:
: in function <:0>
: in function 'SendMsg'
: in function 'LuaSendMsg'
: in function 'SendMsg'
:78: in function <[string "GUILayo
ut/A/zhuanpanOBJ.lua"]:73> 我这样试过,可以的
页:
[1]