i keep getting this error grrrr
Syntax ...top\New Folder (7)\scripts\Trivia-Ex-V.0.68.lua5.lua:1418: attempt to call method `SendToPlayers' (a nil value)
function curTriv:ShowAnswer()
TrivEx:SendToPlayers("The answer is: "..curTriv.ans[1])
if curTriv.availans > 1 then
local msg = ""
for i = 2,curTriv.availans do
msg = msg..curTriv.ans[i]..", "
end
msg = string.sub(msg,1,string.len(msg)-2)
curTriv:SendToPlayers("Other answers were: "..msg..".")
end
end
line:1418 curTriv:SendToPlayers("Other answers were: "..msg..".")
anyone else getting this ? anyone know how to fix it ?
Try replacing this:
curTriv:SendToPlayers("Other answers were: "..msg..".")
with this:
TrivEx:SendToPlayers("Other answers were: "..msg..".")
Cheers
thanks jiten that worked great no more errors :)
You're welcome m8.
Cheers