js制作大师吧 关注:352贴子:2,416
  • 6回复贴,共1

大师帮忙看看这代码为什么错了

只看楼主收藏回复

Error occurred in script: 火焰粒子.js
org.mozilla.javascript.EcmaError: ReferenceError: "getPalyerX" is not defined. (火焰粒子.js#2)
at org.mozilla.javascript.ScriptRuntime.constructError(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.constructError(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.notFoundError(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.getNameFunctionAndThis(Unknown Source)
at org.mozilla.javascript.Interpreter.interpretLoop(Unknown Source)
at script.modTick(火焰粒子.js:2)
at org.mozilla.javascript.Interpreter.interpret(Unknown Source)
at org.mozilla.javascript.InterpretedFunction.call(Unknown Source)
at org.mozilla.javascript.ContextFactory.doTopCall(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.doTopCall(Unknown Source)
at org.mozilla.javascript.InterpretedFunction.call(Unknown Source)
at net.zhuoweizhang.mcpelauncher.ScriptManager.callScriptMethod(ScriptManager.java:283)
at net.zhuoweizhang.mcpelauncher.ScriptManager.tickCallback(ScriptManager.java:436)
at dalvik.system.NativeStart.run(Native Method)


来自Android客户端1楼2016-04-24 20:15回复
    源码呢


    IP属地:广东来自Android客户端3楼2016-05-03 17:16
    回复
      getPalyerX未找到,要么你没有定义要么不在作用域


      来自Android客户端4楼2016-05-20 18:05
      回复
        建议把粒子的坐标改为Player.getX(),等等,你是不是忘了加括号了?


        来自Android客户端5楼2016-05-20 22:18
        回复
          什么叫getPalyerX?应该是getPlayerX


          IP属地:河北来自Android客户端6楼2016-05-23 21:10
          收起回复