Показать сообщение отдельно

  #6  
Старый 24.04.2022, 10:59
gaZmanoV
Познающий
Регистрация: 18.09.2019
Сообщений: 31
С нами: 3502227

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

Форк этого же проекта, но с реализацией через boost::asio: https://github.com/Tim4ukys/re_samp_query_mechanism

+ не обязательно вводить IP (80.66.82.249 и 01.gtarp.ru одно и тоже выйдет в итоге)

Сорьки, что аппую тему. Зря старался чтоль?=((

Цитата:
Сообщение от Спойлер  


example.cpp:





[CODE]
#include
#include
#include "SQM.h"
// https://www.blast.hk/threads/781/post-128505
int
randomInteger
(
int
min
,
int
max
)
{
static
std
::
random_device rd
;
static
std
::
default_random_engine
e1
(
rd
(
)
)
;
std
::
uniform_int_distribution

uniform_dist
(
min
,
max
)
;
return
uniform_dist
(
e1
)
;
}
int
main
(
int
argc
,
char
*
argv
[
]
)
{
SQM sm
{
"01.gtarp.ru"
,
"7777"
}
;
std
::
cout

(
)
;
std
::
cout

(
)
;
for
(
const
auto
&
[
rkey
,
rr
]
:
rul
.
m_arrRules
)
{
std
::
cout

(
)
;
size_t i_player
{
}
;
for
(
const
auto
&
pl
:
players
.
m_arrPlayer
)
{
std
::
cout

5
)
{
std
::
cout

(
)
;
tick
=
GetTickCount64
(
)
-
tick
;
std
::
cout



Вывод:



 
Ответить с цитированием