• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

BroadcastMessage function not working

mikeware

New Member
Joined
Jul 17, 2007
Messages
338
Reaction score
0
Location
Brazil
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)

Code:
broadcastMessage('message')
and now in 2.5:
Code:
broadcastMessage('message', 18)

tryed too:
Code:
broadcastMessage('message', 2)
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:
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
and:
Code:
function onSay(cid, words, param, frompos)
broadcastMessage('buahahaha', MESSAGE_STATUS_WARNING)
end
and:
Code:
function onSay(cid, words, param, frompos)
broadcastMessage('buahahaha', MESSAGE_EVENT_DEFAULT)
end

gives the same error
 
Last edited:
try this lol

Code:
broadcastMessage('Mokerowns', 25)
 
try this lol

Code:
broadcastMessage('Mokerowns', 25)

I guess it ill not work with 25, I tryed with 18 why should 25 work? probaly is a bug...Im waiting talaturen appear there to solve the problem =/
 
As I said, not worked, try u guys and see if works that function
 
As I said, not worked, try u guys and see if works that function

Please post your script so i can take an look at it if you dont want to post it here please send it in an pm i will NOT release it or give it away without your permission
 
Please post your script so i can take an look at it if you dont want to post it here please send it in an pm i will NOT release it or give it away without your permission

Well I can post for you the "skeleton" of the script, without my ideas, and u can take a look if you want... but as I said, the function is not working and probaly is a bug, im waiting talaturen say something about it =/
 
You guys can make a test: just make a simple talkaction script like this one:
Code:
function onSay(cid, words, param)
broadcastMessage('broadcastmessage dont works', 19)
end

don't forget to add into the talkactions.xml then test it, you all will notice that the message don't will broadcast, in 2.4 this would be working :)
 
I'v just tested it and indeed it dosen't work but gone try to change the function of it hope it works then gone add check lvl/premmycheck maby it will work then
 
i even tested with lvl check and things like that it dosen't work more things dont work in 0.2.5 when i try to buy 2 sd runes i get an "LuaDoaddContaineritem()" error and in 0.2.4 it worked pefectly!
 
So, as you can see, the function don't works and as u saying, there is other things don't working, where's talaturen when we need him?
 
From the 0.2.4 to 0.2.5 version the broadcastMessage(message) has been
changed to broadcastMessage(message, messageType).

Try this:

broadcastMessage('your message', MESSAGE_EVENT_ADVANCE)

Other types:

MESSAGE_STATUS_WARNING
MESSAGE_EVENT_ADVANCE
MESSAGE_EVENT_DEFAULT
MESSAGE_STATUS_DEFAULT
MESSAGE_INFO_DESCR
MESSAGE_STATUS_SMALL
MESSAGE_STATUS_CONSOLE_BLUE
MESSAGE_STATUS_CONSOLE_RED
 
From the 0.2.4 to 0.2.5 version the broadcastMessage(message) has been
changed to broadcastMessage(message, messageType).

Try this:

broadcastMessage('your message', MESSAGE_EVENT_ADVANCE)

Other types:

MESSAGE_STATUS_WARNING
MESSAGE_EVENT_ADVANCE
MESSAGE_EVENT_DEFAULT
MESSAGE_STATUS_DEFAULT
MESSAGE_INFO_DESCR
MESSAGE_STATUS_SMALL
MESSAGE_STATUS_CONSOLE_BLUE
MESSAGE_STATUS_CONSOLE_RED

omg..don't you read the posts? we already know that and did that, nothing happens.
 
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
and:
Code:
function onSay(cid, words, param, frompos)
broadcastMessage('buahahaha', MESSAGE_STATUS_WARNING)
end
and:
Code:
function onSay(cid, words, param, frompos)
broadcastMessage('buahahaha', MESSAGE_EVENT_DEFAULT)
end

gives the same error
 
Back
Top