最近我我ptokax更新到0.5.3,從那時起我votekick腳本已停止工作在我的腳本需要輸入從其他在線用戶爲1或2的接受或拒絕每當用戶輸入1個或2的腳本已經停止接受輸入,並在表中插入它,我懷疑用戶被踢或沒有,但現在它可能是由於一些語法變化。請看看我的劇本並提出建議。添加變量值ptokax腳本
data = " <Nick> 2" -- this is the way script takes input frm dc chat
s,e,vote= string.find(data,"%b<>%s(.+)")
if vote == "1" then
table.insert(votesPlus,user.sNick)
Core.SendToAll("*--"..user.sNick.." accepts--")
if #votesPlus == votes or # votesMinus == votes then
stop(nTimerId)
end
return true
elseif vote == "2" then
table.insert(votesMinus,user.sNick)
Core.SendToAll("*--"..user.sNick.." denies--")
if #votesPlus == votes or # votesMinus == votes then
stop(nTimerId)
end
return true
else
-- the user is not voting even when poll active
end
請說更準確地想要得到什麼,因爲它最後一次工作,你現在有什麼問題發生了什麼變化。 – meneldal
ptokax的更新之前,此腳本用來工作正常,但現在這部分因某種原因停止工作後,因爲它是應該採取輸入1或2,但現在它不採取某種原因輸入。 – warl0ck