尝试加载简单的声音会导致错误:无法加载声音。我有另一个脚本设置相同的方式,但不起作用。到底是怎么回事?我在下面给出了完整的(简单)脚本。
# Eventscripts Imports
import es, playerlib
def load():
print 'You have loaded Chicken Sh1t'
def unload():
print 'You have un loaded Chicken Sh1t'
def download():
es.stringtable('downloadables', 'sound/mysounds/chicken.wav')
def player_say(ev):
alive_ts = es.getlivingplayercount(2)
alive_cts = es.getlivingplayercount(3)
if ev['text'] == 'chicken':
if alive_ts == 1:
if alive_cts == 0:
useridlist = es.getUseridList()
for usrid in useridlist:
es.playsound(ev['userid'], 'sound/mysounds/chicken.wav', 1)
任何人都可以帮助我吗?