|
Author
|
Message
|
|
Veteran Member
|

06-05-2013
, 04:17
Re: hud colors with cvar
|
#1
|
Quote:
Originally Posted by fysiks
No! You need to learn how strings work.
PHP Code:
new szColors[16]
new szRed[4], szGreen[4], szBlue[4]
new iRed, iGreen, iBlue
get_pcvar_string(cvar_pointer_here, szColors, charsmax(szColors))
parse(szColors, szRed, charsmax(szRed), szGreen, charsmax(szGreen), szBlue, charsmax(szBlue))
iRed = str_to_num(szRed); iGreen = str_to_num(szGreen); iBlue = str_to_num(szBlue);
|
you are right
|
|
|
|