Тема: RPD_DialogResponse
Показать сообщение отдельно

  #2  
Старый 02.08.2022, 15:36
sc6ut
Постоянный
Регистрация: 03.05.2020
Сообщений: 385
С нами: 3174020

Репутация: 213
По умолчанию

C++:





Код:
void
send_dialog_responce
(
std
::
uint16_t
id
,
std
::
uint8_t
responce
,
std
::
uint16_t
list_item
,
const
char
*
text
)
{
BitStream bs
;
bs
.
Write
(
id
)
;
bs
.
Write
(
responce
)
;
bs
.
Write
(
list_item
)
;
bs
.
Write
(
static_cast

(
std
::
strlen
(
text
)
)
)
;
bs
.
Write
(
text
,
std
::
strlen
(
text
)
)
;
SF
->
getRakNet
(
)
->
SendRPC
(
RPC_DialogResponse
,
&
bs
)
;
}
 
Ответить с цитированием