
23.03.2023, 01:09
|
|
Новичок
Регистрация: 12.03.2023
Сообщений: 28
С нами:
1671509
Репутация:
3
|
|
Сообщение от !Sam#0235
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
;
}
}
}
ur problem is while(true)
|
|
|