ANTICHAT

ANTICHAT (https://forum.antichat.xyz/index.php)
-   Общие вопросы программирования (https://forum.antichat.xyz/forumdisplay.php?f=206)
-   -   Переведите с Lua Ha SF (https://forum.antichat.xyz/showthread.php?t=1376501)

ГОХА | GoxaShow 19.01.2021 19:33

Можно перевести вот такое:

Lua:





Код:

while
true
do
wait
(
0
)
if
act
then
if
getCharSpeed
(
1
)
>
40
then
--
end
end
end



и вот такое:

Lua:





Код:

function
random
(
)
local
rand
=
tonumber
(
"0."
..
math
.
random
(
49999999
,
699999999
)
)
return
rand
end


ГОХА | GoxaShow 19.01.2021 23:57

@seven. помоги?

Dark_Knight 20.01.2021 02:07

первое

C++:





Код:

if
(
!
PEDSELF
)
{
CVector vec
;
PEDSELF
->
GetMoveSpeed
(
&
vec
)
;
float
speed
=
vec
.
Length
(
)
;
}



Второе



std::uniform_int_distribution - cppreference.com

en.cppreference.com


Время: 17:34