CLEO Help textdraw wrong value

CLEO related
Status
Not open for further replies.

attic

Active member
Joined
Jan 13, 2017
Messages
40
Reaction score
0
Code:
0000: NOP 
03F0: enable_text_draw 1 

:NONAME_6
wait 0
0@ = Actor.Health($PLAYER_ACTOR)  
if 
  0@ > 0 
else_jump @NONAME_6
0342: enable_text_draw_centered 1
033F: set_text_draw_letter_size 0.65 1.8 
081C: draw_text_outline 1 RGBA 0 0 0 255 
0340: set_text_draw_RGBA 159 64 62 255 
045A: draw_text_1number 500.0 80.0 GXT 'NUMBER' number 0@  // ~1~
jump @NONAME_6
shows me : 50000100 - 50000 stays and 100 moves accordingly to hp
 

attic

Active member
Joined
Jan 13, 2017
Messages
40
Reaction score
0
supahdupahnubah said:
attic said:
Hidend said:
What do you mean, it works for me

you mean you tested ig?
could it be due server sided hp

Does work for me as well, you can just test it on the other server, on ugbase one for example : samp.ugbase.eu:7777
Works on the ugbase server,doesent work on the server i usually play, displays 5000080 
80 - hp
 
Joined
Dec 31, 2015
Messages
712
Reaction score
27
attic said:
Works on the ugbase server,doesent work on the server i usually play, displays 5000080 
80 - hp

If you mean that your HP is always between 5000000-5000100 simply substract 5000000 if your HP is higher than 200 or whatever.. How didn't you solve it yet?
 

attic

Active member
Joined
Jan 13, 2017
Messages
40
Reaction score
0
supahdupahnubah said:
attic said:
Works on the ugbase server,doesent work on the server i usually play, displays 5000080 
80 - hp

If you mean that your HP is always between 5000000-5000100 simply substract 5000000 if your HP is higher than 200 or whatever.. How didn't you solve it yet?

indeed im retarded,i was subtracting it with 50000 and was wondering why doesent it work lmao

ty everyone this can be closed
 
Status
Not open for further replies.
Top