CLEO Help Cleo time.

CLEO related
Status
Not open for further replies.

pepeelpubero

Well-known member
Joined
Jan 21, 2014
Messages
433
Reaction score
1
What is wrong? This stop working my game after bar loads on samp.

Code:
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP

:NONAME_2568
00BF: 27@ = current_time_hours, 28@ = current_time_minutes 
if 
  10 > 28@ 
else_jump @NONAME_2608 
gosub @NONAME_2617 

:NONAME_2608
gosub @NONAME_2693 

:NONAME_2617
03E0: draw_text_behind_textures 1 
033F: set_text_draw_letter_size 0.45 1.3 
03E4: set_text_draw_align_right 1 
081C: draw_text_outline 1 RGBA 0 0 0 255 
0340: set_text_draw_RGBA 255 255 255 220 
045B: draw_text_2numbers 623.0 55.0 GXT 'TIME_0' numbers 27@ 28@  // ~1~:0~1~
return 

:NONAME_2693
03E0: draw_text_behind_textures 1 
033F: set_text_draw_letter_size 0.45 1.3 
03E4: set_text_draw_align_right 1 
081C: draw_text_outline 1 RGBA 0 0 0 255 
0340: set_text_draw_RGBA 255 255 255 240 
045B: draw_text_2numbers 623.0 55.0 GXT 'TIME' numbers 27@ 28@  // ~1~:~1~
return
 

pepeelpubero

Well-known member
Joined
Jan 21, 2014
Messages
433
Reaction score
1
Thanks but what is wrong now?

Code:
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP

:NONAME_2568
wait 0
00BF: 27@ = current_time_hours, 28@ = current_time_minutes 
if 
  10 > 28@ 
else_jump @NONAME_2608 
gosub @NONAME_2617 

:NONAME_2608
wait 0
gosub @NONAME_2693 

:NONAME_2617
wait 0
03F0: enable_text_draw 1
03E0: draw_text_behind_textures 1 
033F: set_text_draw_letter_size 0.45 1.3 
03E4: set_text_draw_align_right 1 
081C: draw_text_outline 1 RGBA 0 0 0 255 
0340: set_text_draw_RGBA 255 255 255 220 
045B: draw_text_2numbers 623.0 55.0 GXT 'TIME_0' numbers 27@ 28@  // ~1~:0~1~
return 

:NONAME_2693
wait 0
03F0: enable_text_draw 1
03E0: draw_text_behind_textures 1 
033F: set_text_draw_letter_size 0.45 1.3 
03E4: set_text_draw_align_right 1 
081C: draw_text_outline 1 RGBA 0 0 0 255 
0340: set_text_draw_RGBA 255 255 255 240 
045B: draw_text_2numbers 623.0 55.0 GXT 'TIME' numbers 27@ 28@  // ~1~:~1~
return
 

xzytro

God
Joined
Apr 1, 2013
Messages
2,294
Reaction score
7
gosub @NONAME_2693
right after that one, add
jump @NONAME_2568

because after gosub@NONAME_2693, it will return and it will then continue on noname_2617, which we don't want, we want it to repeat the process, and you can do that repetition by putting jump.
 

pepeelpubero

Well-known member
Joined
Jan 21, 2014
Messages
433
Reaction score
1
xzytro link said:
gosub @NONAME_2693
right after that one, add
jump @NONAME_2568

because after gosub@NONAME_2693, it will return and it will then continue on noname_2617, which we don't want, we want it to repeat the process, and you can do that repetition by putting jump.

Thanks xzytro but it blinks. What can i do?
 

xzytro

God
Joined
Apr 1, 2013
Messages
2,294
Reaction score
7
I don't know the reason, probably springfield knows. I say he would know about it because there was a cleo which shows your current car's name somewhere as a textdraw, and it wasn't blinking for him, but it is blinking for me. We surely lack something that we both don't know about.
 
Joined
Feb 18, 2005
Messages
2,963
Reaction score
267
Code:
0000: NOP
03F0: enable_text_draw 1

while true
wait 0
00BF: 27@ = current_time_hours, 28@ = current_time_minutes 
if 
10 >= 28@ 
then
    03E0: draw_text_behind_textures 1 
    033F: set_text_draw_letter_size 0.45 1.3 
    03E4: set_text_draw_align_right 1 
    081C: draw_text_outline 1 RGBA 0 0 0 255 
    0340: set_text_draw_RGBA 255 255 255 220 
    045B: draw_text_2numbers 623.0 55.0 GXT 'TIME_0' numbers 27@ 28@  // ~1~:0~1~
else
    03E0: draw_text_behind_textures 1 
    033F: set_text_draw_letter_size 0.45 1.3 
    03E4: set_text_draw_align_right 1 
    081C: draw_text_outline 1 RGBA 0 0 0 255 
    0340: set_text_draw_RGBA 255 255 255 240 
    045B: draw_text_2numbers 623.0 55.0 GXT 'TIME' numbers 27@ 28@  // ~1~:~1~
end
end
 
Status
Not open for further replies.
Top