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

  #4  
Старый 20.03.2023, 05:38
0x73616D
Участник форума
Регистрация: 27.05.2021
Сообщений: 140
С нами: 2614229

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

What's wrong? my game freezes when using this function, in theory the function should get the X & Y position of the cursor until I press the space key, but when calling the function the game just freezes

C++:





Код:
void
cursor_move
(
)
{
bool
mueve
=
true
;
while
(
mueve
==
true
)
{
activew
=
false
;
//cursor();
SF
->
getSAMP
(
)
->
getMisc
(
)
->
ToggleCursor
(
2
,
true
)
;
POINT cursor
=
SF
->
getGame
(
)
->
getCursorPos
(
)
;
int
cursorx
,
cursory
;
cursorx
=
cursor
.
x
;
cursory
=
cursor
.
y
;
if
(
SF
->
getGame
(
)
->
isKeyDown
(
VK_SPACE
)
)
{
mueve
=
false
;
SF
->
getSAMP
(
)
->
getMisc
(
)
->
ToggleCursor
(
false
)
;
activew
=
true
;
break
;
}
}
}
 
Ответить с цитированием