I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 45, in script
if preferences.get_volume(music) == 0.0:
File "game/script.rpy", line 45, in <module>
if preferences.get_volume(music) == 0.0:
NameError: name 'music' is not defined
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 45, in script
if preferences.get_volume(music) == 0.0:
File "renpy/ast.py", line 1898, in execute
if renpy.python.py_eval(condition):
File "renpy/python.py", line 2276, in py_eval
return py_eval_bytecode(code, globals, locals)
File "renpy/python.py", line 2269, in py_eval_bytecode
return eval(bytecode, globals, locals)
File "game/script.rpy", line 45, in <module>
if preferences.get_volume(music) == 0.0:
NameError: name 'music' is not defined
我加了之后报错显示这个 是要在前面全局定义什么吗 |