脚本问题报错
if TalkMsg == "/dmpet" then --未完
0 w8 q- X) _- H local MD = Char.GetData(_player,%对象_MAP%)
9 K! ~$ k& c" n4 H$ S—魔力私服,魔力宝贝私服技术,DELPHI编程,魔力寶貝, 魔力宝贝, 크로스게이트,クロスゲート local FD = Char.GetData(_player,%对象_地图%)bbs.mocwww.com( D$ M |1 o2 e# i% x
print(type(NLG.GetFloorPets(MD,FD)))妖城在线论坛( C8 D8 ]3 \5 [
return 1
& _5 M0 c9 B2 n5 J. |妖城在线论坛endbbs.mocwww.com, a E) F$ z8 V- V+ W
提示错误信息attempt to index a number value—魔力私服,魔力宝贝私服技术,DELPHI编程,魔力寶貝, 魔力宝贝, 크로스게이트,クロスゲート5 P* T+ ?" x0 U, y, k1 ?7 Y
NLG.GetFloorPets(MD,FD) 看介绍说返回值为lua的table,包含所有宠物对象的对象index。
Y0 _' L! U& [% B* n; G, obbs.mocwww.com是哪里有问题呢