脚本问题报错
if TalkMsg == "/dmpet" then --未完
* D) S) }$ l h9 F魔力私服,最新魔力宝贝私服技术交流 local MD = Char.GetData(_player,%对象_MAP%)魔力私服,最新魔力宝贝私服技术交流% l0 o. C( J) i @ R9 W k$ Z
local FD = Char.GetData(_player,%对象_地图%)
: i1 _, u7 b; p& W) T8 p% z0 [魔力私服,最新魔力宝贝私服技术交流 print(type(NLG.GetFloorPets(MD,FD)))
' W/ c5 w. G+ I$ h魔力私服,最新魔力宝贝私服技术交流 return 1& ]9 P/ m0 i' L
end妖城在线论坛# I& X& M$ n1 w3 P+ Y1 ]# t, u
提示错误信息attempt to index a number value妖城在线论坛: T4 Z( ^6 x7 s h; r
NLG.GetFloorPets(MD,FD) 看介绍说返回值为lua的table,包含所有宠物对象的对象index。
! O+ j/ ]! ^# R5 U/ s妖城在线论坛是哪里有问题呢