CLEO Help Hmm whats problem on this script

CLEO related
Status
Not open for further replies.

not490

Well-known member
Joined
Feb 8, 2014
Messages
438
Reaction score
4
Code:
{$CLEO .cs}
0000:
wait 0
:THREADTEST_1
if
key_down 49
else_jump @THREADTEST_1
0ACD: show_text_highpriority "What Tha hell" time 3000
jump @THREADTEST_1
When this is in my cleo folder and i start SAMP,
it freezes at the loading screen
 

ThermaL

Expert
Joined
Oct 23, 2013
Messages
1,593
Reaction score
3
{$CLEO .cs}

0000: NOP

:A
wait 0

if
key_down 49
else_jump @A
0ACD: show_text_highpriority "What Tha hell" time 3000
jump @B

{$CLEO .cs}
0000:
wait 0
:THREADTEST_1

if
key_down 49
else_jump @THREADTEST_1
0ACD: show_text_highpriority "What Tha hell" time 3000
jump @THREADTEST_1
 

not490

Well-known member
Joined
Feb 8, 2014
Messages
438
Reaction score
4
Can i ask what caused the freeze ?
Btw it still does not work, this time game starts but text aint showing.
Its very strange even that easy script worked for me like 1 month ago, now nothing.
 

m1zg4rd_PL

Well-known member
Joined
Jul 19, 2013
Messages
222
Reaction score
0
not490 link said:
Can i ask what caused the freeze ?
Btw it still does not work, this time game starts but text aint showing.
Its very strange even that easy script worked for me like 1 month ago, now nothing.

Firstly, work with Sanny Builder 3 and CLEO 4.3. Then, remember that script can't show too many text messages at one time, add delay with "wait x" or show text when player is pressing key up, for example:

Code:
{$CLEO}

:WaitForKeyDown
wait 5
if
key_down 49
else_jump @WaitForKeyDown
jump @WaitForKeyUp

:WaitForKeyUp
wait 5
if
not key_down 49
else_jump @WaitForKeyUp
print "What Tha hell" 3000
jump @WaitForKeyDown
 

not490

Well-known member
Joined
Feb 8, 2014
Messages
438
Reaction score
4
Ofc i use 4.3 and sanny 3... im not that newbie
Btw u forgot add  {$CLEO}
0000: This little thing

:WaitForKeyDown
wait 5
if
key_down 49
else_jump @WaitForKeyDown
jump @WaitForKeyUp

:WaitForKeyUp
wait 5
if
not key_down 49
else_jump @WaitForKeyUp
print "What Tha hell" 3000
jump @WaitForKeyDown
 
Status
Not open for further replies.
Top