mimus
New Member
- Joined
- Mar 14, 2012
- Messages
- 168
- Reaction score
- 2
hello every one! well im using this bc
but im getting this error
can you helpme to get it work?
Code:
local t, i = {"test", "testing", "test123"}, 1
function onThink(interval)
broadcastMessage(t[i], MESSAGE_STATUS_WARNING)
i = i == #t and 1 or i + 1
return true
end
but im getting this error
Code:
Lua Script Error: [GlobalEvent Interface]
data/globalevents/scripts/broadcast.lua:onThink
data/globalevents/scripts/broadcast.lua:4: attempt to call global 'broadcastMessage' (a nil value)
stack traceback:
[C]: in function 'broadcastMessage'
data/globalevents/scripts/broadcast.lua:4: in function <data/globalevents/scripts/broadcast.lua:3>
[Error - GlobalEvents::think] Failed to execute event: Broadcast
can you helpme to get it work?