GlobalChatJoinChannel
Joins the specified global chat channel.
ChName — name of the channel to join.
Sends a chat join packet to the server. The current active channel can be checked with GlobalChatActiveChannel.
Присоединяется к указанному каналу глобального чата.
ChName — название канала для подключения.
Отправляет серверу пакет присоединения к чату. Текущий активный канал можно проверить через GlobalChatActiveChannel.
procedure GlobalChatJoinChannel(ChName: String);
def GlobalChatJoinChannel(ChName: str) -> None: ...
begin
GlobalChatJoinChannel('General');
Wait(500);
if GlobalChatActiveChannel = 'General' then
AddToSystemJournal('Joined General channel')
else
AddToSystemJournal('Failed to join');
end.
GlobalChatJoinChannel('General')
Wait(500)
if GlobalChatActiveChannel() == 'General':
AddToSystemJournal('Joined General channel')
else:
AddToSystemJournal('Failed to join')
GlobalChatLeaveChannel, GlobalChatActiveChannel, GlobalChatChannelsList, GlobalChatSendMsg