Error when using cRoot.BroadcastChat
#1
I have some code that is basically this:
local ChatMsg=cCompositeChat()
    :AddTextPart"a"
    :AddTextPart"b"
cRoot:BroadcastChat(ChatMsg)
When I do that, I get this:
Code:
[22:07:00] LUA: Plugins/(removed, lel)/main.lua:61: error in function 'BroadcastChat'.
     argument #1 is 'class cRoot'; 'cRoot' expected.
Reply
Thanks given by:
#2
Fixed it. For those who have this issue in the future, use cRoot:Get():BroadcastChat()
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)