CLEO Help Dialog Help!

CLEO related
Status
Not open for further replies.

Husnain

Well-known member
Joined
May 20, 2016
Messages
228
Reaction score
9
Location
Mars
PHP:
{$CLEO .cs}
0000:

:BOX
wait 0
if and
  Player.Defined($PLAYER_CHAR)
  Player.Defined($PLAYER_ACTOR)
  0ADC:   test_cheat "1"
jf @BOX
wait 0
Dialog.Create(1@, "NJ-HAX Private Version")
Dialog.SetRECT(1@, 652, 166, 312, 295)
Dialog.SetBackgroundColor(1@, 840793832)

end_thread
Not working. Why?
 

0B36

Expert
Joined
Jan 6, 2014
Messages
1,324
Reaction score
8
Don't use end_thread if you want something to be ran every second. What you want is that thread to be ran in a loop. End_Thread executes once and then it ends. It doesn't loop.

[shcode=cpp]
{$CLEO}

thread "blabla"

:BOX
wait 0
if and
Player.Defined($PLAYER_ACTOR)
0ADC: test_cheat "1"
jf @BOX
Dialog.Create(1@, "NJ-HAX Private Version")
Dialog.SetRECT(1@, 652, 166, 312, 295)
Dialog.SetBackgroundColor(1@, 840793832)
jump @BOX
[/shcode]
 
Status
Not open for further replies.
Top