Can't draw color of player

Статус
В этой теме нельзя размещать новые ответы.

Safa

Новичок
Автор темы
10
2
CLEO:
0B20: samp 3@ = actor_handle_by_samp_player_id 2@
0B36: samp $pName = get_player_nickname 2@
0B37: samp $pColor = get_player_color 2@

0B6F: render font 1@ draw_text $pName pos $x $y color $pColor

The text is being drawn when I don't use $pColor aka. get_player_color of all looped players (2@). But when I use -1 color it draws fine.

For some reason the only problem here is that if I want to draw the text with color of $pColor it just won't draw.

Anyone idea how to fix this?
 

Musaigen

abobusnik
Проверенный
1,581
1,300
CLEO:
0B20: samp 3@ = actor_handle_by_samp_player_id 2@
0B36: samp $pName = get_player_nickname 2@
0B37: samp $pColor = get_player_color 2@

0B6F: render font 1@ draw_text $pName pos $x $y color $pColor

The text is being drawn when I don't use $pColor aka. get_player_color of all looped players (2@). But when I use -1 color it draws fine.

For some reason the only problem here is that if I want to draw the text with color of $pColor it just won't draw.

Anyone idea how to fix this?
Don't use global vars.
 
Статус
В этой теме нельзя размещать новые ответы.