PDA

Просмотр полной версии : Переведите с Lua Ha SF


ГОХА | 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. (https://www.blast.hk/members/374442/) помоги?

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 (https://www.blast.hk/redirect/aHR0cHM6Ly9lbi5jcHByZWZlcmVuY2UuY29tL3cvY3BwL251bW VyaWMvcmFuZG9tL3VuaWZvcm1faW50X2Rpc3RyaWJ1dGlvbg)

en.cppreference.com