Hey, I noticed that in the TFS 2.5 the broadcastmessage function is not working anymore... It was in 2.4
Here is how i was using in 2.4 (it was working)
and now in 2.5:
tryed too:
but nothing happened..
changed ' to " but no changes, keep don't working, maybe it's a bug and something need to be fix?
EDIT:
Tested in rev 341 and still not working, here is the error:
the test script:
tryed too:
and:
and:
gives the same error
Here is how i was using in 2.4 (it was working)
Code:
broadcastMessage('message')
Code:
broadcastMessage('message', 18)
tryed too:
Code:
broadcastMessage('message', 2)
changed ' to " but no changes, keep don't working, maybe it's a bug and something need to be fix?
EDIT:
Tested in rev 341 and still not working, here is the error:
Code:
Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/wtf.lua:onSay
luaBroadcastMessage(). Bad messageClass type.
the test script:
Code:
function onSay(cid, words, param, frompos)
broadcastMessage('buahahaha', MESSAGE_EVENT_ADVANCE)
end
tryed too:
Code:
function onSay(cid, words, param, frompos)
broadcastMessage('buahahaha', 18)
end
Code:
function onSay(cid, words, param, frompos)
broadcastMessage('buahahaha', MESSAGE_STATUS_WARNING)
end
Code:
function onSay(cid, words, param, frompos)
broadcastMessage('buahahaha', MESSAGE_EVENT_DEFAULT)
end
gives the same error
Last edited: